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

JOB_NAME includes parameters

XMLWordPrintable

      According to https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables JOB_NAME should only be the project name, but it actually includes parameters, e.g. job_name/parameter1=value2,parameter2=value2

      Workaround:

      JOB_NAME=$(echo $JOB_NAME | cut -d '/' -f 1)
      

            Unassigned Unassigned
            xytxytxyt Xian Yi Teng
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: