[JIRA] (JENKINS-42168) should be able to validate a declarative pipeline from a pipeline step

2 views
Skip to first unread message

batmat@batmat.net (JIRA)

unread,
Feb 18, 2017, 8:38:02 AM2/18/17
to jenkinsc...@googlegroups.com
Baptiste Mathus updated an issue
 
Jenkins / Improvement JENKINS-42168
should be able to validate a declarative pipeline from a pipeline step
Change By: Baptiste Mathus
Summary: should be able to validate a declaritive declarative pipeline from a pipeline step
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

batmat@batmat.net (JIRA)

unread,
Feb 18, 2017, 8:51:01 AM2/18/17
to jenkinsc...@googlegroups.com
Baptiste Mathus commented on Improvement JENKINS-42168
 
Re: should be able to validate a declarative pipeline from a pipeline step

+1, I think the use case for CLI is still valid to be able to validate your work on your dev box progressively/before pushing. But would make life easier to have a pipeline step: we would then have more easily a PR build for modifications against Jenkinsfile itself.
Thanks!

andrew.bayer@gmail.com (JIRA)

unread,
Feb 21, 2017, 1:52:01 PM2/21/17
to jenkinsc...@googlegroups.com
Andrew Bayer started work on Improvement JENKINS-42168
 
Change By: Andrew Bayer
Status: Open In Progress

scm_issue_link@java.net (JIRA)

unread,
Feb 23, 2017, 2:16:03 PM2/23/17
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Andrew Bayer
Path:
pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/steps/ValidateDeclarativePipelineStep.java
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AbstractModelDefTest.java
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/steps/ValidateDeclarativePipelineStepTest.java
pipeline-model-definition/src/test/resources/validateDeclarativePipelineStep.groovy
http://jenkins-ci.org/commit/pipeline-model-definition-plugin/bc6c17770181604fc648d775c6adb2162c9a4e2f
Log:
[FIXED JENKINS-42168] Add validateDeclarativePipeline(path) step

Given a path to a file containing a Declarative Pipeline to validate,
this will read that file from the workspace, validate its contents,
echo out relevant errors to the build log, and return true if the
contents validated, or false other wise.

scm_issue_link@java.net (JIRA)

unread,
Feb 23, 2017, 2:16:04 PM2/23/17
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Feb 23, 2017, 2:16:04 PM2/23/17
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Andrew Bayer
Path:
pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/steps/ValidateDeclarativePipelineStep.java

pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/steps/ValidateDeclarativePipelineStep/config.jelly
pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/steps/ValidateDeclarativePipelineStep/help-path.html
pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/steps/ValidateDeclarativePipelineStep/help.html
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AbstractModelDefTest.java
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/steps/ValidateDeclarativePipelineStepTest.java
pipeline-model-definition/src/test/resources/validateDeclarativePipelineStep.groovy
http://jenkins-ci.org/commit/pipeline-model-definition-plugin/d0bdbf7c606e0cfceaafd050e9693c0d89de1f0a
Log:
Merge pull request #121 from abayer/jenkins-42168

[FIXED JENKINS-42168] Add validateDeclarativePipeline(path) step

batmat@batmat.net (JIRA)

unread,
Feb 27, 2017, 5:01:01 AM2/27/17
to jenkinsc...@googlegroups.com

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:25:16 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages