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

While Saving Jenkins Configs from Dashboard Getting 502 Gateway Error

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • _unsorted
    • None

      Hi Team,

       

      Jenkins Version: 2.319.1

      While saving any config changes in Jenkins Dashboard getting 502 Gateway Error.

      We increase Jenkins logging level to DEBUG and try to analyze logs but didn't get much info.

      At last, we found out that pipeline groovy and shell script variable declaration leads to the problem. 

       

      Issue happening running the following script.

      pipeline {
      agent any
      environment

      { name = 'test' }

      stages {
      stage('Example Test') {
      steps {
      echo "${name}"
      }
      }
      }
      }

       

      Find out the Fix:

       

      While removing Curly Bracket from "${name}" to ${name} is working fine and able to save the configuration.

      We are using n number of pipeline scripts is using the same variable declaration.

      Now the same issue happening for Jenkins Freestyle jobs also.

      Please understand this is happening due to any Bug in the version.

       

            Unassigned Unassigned
            najumudeen Najumudeen M
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: