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

Expand variables in 'Obtained Jenkinsfile from' line in console output

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • p4-plugin
    • p4-plugin 1.10.0

      Here it is, this is the very beginning of the console log: 

      Started by user ******
      Obtained Jenkinsfile from p4-Perforce-${P4_DEPOT}/${P4_STREAM}
      

       Expected:

      Started by user ******
      Obtained Jenkinsfile from p4-Perforce-MyReplacedDepotName/MyReplacedStream
      

       

          [JENKINS-57906] Expand variables in 'Obtained Jenkinsfile from' line in console output

          Karl Wirth added a comment -

          Have discussed this with Paul and it's part of the variable scope problem.  There are a lot of variables that we have to jump through hoops to get at different times during the jobs. May not be possible to expand these variables for this message until something changes on the Jenkins side or we redesign how we connect to Jenkins.

          My 5c - Yes it would be good if we can expand these variables but the message is useful for debugging so I would prefer to keep the 'Obtained Jenkinsfile from' at this position in the code even if we are not able to expand variables at this point.

          Karl Wirth added a comment - Have discussed this with Paul and it's part of the variable scope problem.  There are a lot of variables that we have to jump through hoops to get at different times during the jobs. May not be possible to expand these variables for this message until something changes on the Jenkins side or we redesign how we connect to Jenkins. My 5c - Yes it would be good if we can expand these variables but the message is useful for debugging so I would prefer to keep the 'Obtained Jenkinsfile from' at this position in the code even if we are not able to expand variables at this point.

            Unassigned Unassigned
            p4karl Karl Wirth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: