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

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

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: p4-plugin
    • Labels:
    • Environment:
      p4-plugin 1.10.0
    • Similar Issues:

      Description

      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
      

       

        Attachments

          Activity

          Hide
          p4karl 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.

          Show
          p4karl 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.

            People

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

              Dates

              • Created:
                Updated: