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

Jenkins declarative-linter does not handle missing variables

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • pipeline
    • None
    • Jenkins ver. 2.164.2
      Pipeline plugin version 2.6

      Following pipeline with errors is successfully validated.

      pipeline {
          agent any
              stages {
                  stage('Build') {
                      steps {
                          script{ 
                                println missing_variable 
                          }
                   }
             }
       }
      
      ssh -p 18122 username@jenkins declarative-linter < jf
       Jenkinsfile successfully validated.
      

            Unassigned Unassigned
            wl2776 Vladimir Eremeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: