Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat]: add method for validating Jenkinsfile #86

Open
eckdanny opened this issue Dec 5, 2019 · 0 comments · May be fixed by #88
Open

[feat]: add method for validating Jenkinsfile #86

eckdanny opened this issue Dec 5, 2019 · 0 comments · May be fixed by #88

Comments

@eckdanny
Copy link

eckdanny commented Dec 5, 2019

Add an RPC style method on jenkins for validating a Jenkinsfile (see pipeline docs)

usage something like:

jenkins.validate(Jenkinsfile: string, (err, data) => {
  if (err) throw err;
  something(data);
})

The Jenkins remote API is pretty much:

POST /pipeline-model-converter/validate
     Headers.ContentType = multipart/form-data
     {
       jenkinsfile: <stringified-jenkinsfile-contents>
     }
@eckdanny eckdanny linked a pull request Dec 5, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant