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

Add validateJenkinsfile method #88

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

eckdanny
Copy link

@eckdanny eckdanny commented Dec 5, 2019

Adds jenkins#validateJenkinsfile.

closes #86

Adds a method to validate a stringified Jenkinsfile by POST'ing to the
`/pipeline-model-converter/validate` path. The remote API responds with
HTTP 200 whether there are lints reported or not, so we check the if the
response body matches the canned reponse for successful validation.
@Swiftwork
Copy link

This is a great addition, what is needed for this too be merged as this has been sitting for while @silas?

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 this pull request may close these issues.

[feat]: add method for validating Jenkinsfile
2 participants