Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52939

Need to lint pipeline from UI, and also parse parameters

      I create a lot of pipelines where I specify the parameters inside the pipeline like this:

       

      pipeline {
          agent any;
          parameters {
              string(defaultValue: 'master',
                     description: 'SCM branch',
                     name: 'BRANCH')
          }
          stages {
              stage("Do stuff") {
                  steps {
                      sh "echo blah"
                  }
              }
          }
      } 

       

      It would be very handy if:

       

      1.  There was a way to invoke the linter for a Pipeline from the classic UI and the blueocean UI.  Right now, this method is a bit clunky to use: https://jenkins.io/doc/book/pipeline/development/#linter

      2.  It would be good if there was an option in the classic UI and blueocean UI to Reload or Update a pipeline.  If this option could lint the pipeline, and update the parameters from the pipeline into the job, that would be very useful.

          [JENKINS-52939] Need to lint pipeline from UI, and also parse parameters

          Craig Rodrigues created issue -
          Craig Rodrigues made changes -
          Description Original: I create a lot of pipelines where I specify the parameters inside the pipeline like this:

           
          {noformat}
          pipeline {
              agent any;
              parameters {
                  string(defaultValue: 'master',
                         description: 'Portworx docker tag',
                         name: 'BRANCH')
              }
              stages {
                  stage("Do stuff") {
                      steps {
                          sh "echo blah"
                      }
                  }
              }
          } {noformat}
           

          It would be very handy if:

           

          1.  There was a way to invoke the linter for a Pipeline from the classic UI and the blueocean UI.  Right now, this method is a bit clunky to use: [https://jenkins.io/doc/book/pipeline/development/#linter]

          2.  It would be good if there was an option in the classic UI and blueocean UI to *Reload* or *Update* a pipeline.  If this option could lint the pipeline, and update the parameters from the pipeline into the job, that would be very useful.
          New: I create a lot of pipelines where I specify the parameters inside the pipeline like this:

           
          {noformat}
          pipeline {
              agent any;
              parameters {
                  string(defaultValue: 'master',
                         description: 'SCM branch',
                         name: 'BRANCH')
              }
              stages {
                  stage("Do stuff") {
                      steps {
                          sh "echo blah"
                      }
                  }
              }
          } {noformat}
           

          It would be very handy if:

           

          1.  There was a way to invoke the linter for a Pipeline from the classic UI and the blueocean UI.  Right now, this method is a bit clunky to use: [https://jenkins.io/doc/book/pipeline/development/#linter]

          2.  It would be good if there was an option in the classic UI and blueocean UI to *Reload* or *Update* a pipeline.  If this option could lint the pipeline, and update the parameters from the pipeline into the job, that would be very useful.
          Craig Rodrigues made changes -
          Link New: This issue is related to JENKINS-41929 [ JENKINS-41929 ]
          Andrew Bayer made changes -
          Link New: This issue is duplicated by JENKINS-50365 [ JENKINS-50365 ]
          Keith Zantow made changes -
          Issue Type Original: Bug [ 1 ] New: Improvement [ 4 ]
          Keith Zantow made changes -
          Attachment New: screenshot-1.png [ 44495 ]
          Liam Newman made changes -
          Component/s Original: blueocean-plugin [ 21481 ]
          Andrew Bayer made changes -
          Assignee Original: Andrew Bayer [ abayer ]
          Oleksandr made changes -
          Link New: This issue duplicates JENKINS-50365 [ JENKINS-50365 ]
          Oleksandr made changes -
          Link Original: This issue is duplicated by JENKINS-50365 [ JENKINS-50365 ]

            Unassigned Unassigned
            rodrigc Craig Rodrigues
            Votes:
            8 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated: