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

Expand Global Environment Variables in p4 plugin configuration fields

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: perforce-plugin
    • Labels:
      None
    • Environment:
      Windows 2008 R2
    • Similar Issues:

      Description

      The Jenkins Global Properties are not expanded in the p4 plugin like the job parameters are. We are using global properties to enable rolling branches and this feature is needed to make that possible.

      Example:

      Using a global property, ${PROPERTY_X}, with value "HELLO" in the workspace name and client spec is not expanded and yields:

      Workspace Name:
      WORKSPACE_${PROPERTY_X}

      Client Spec:
      //depot/module/${PROPERTY_X}/... //WORKSPACE_${PROPERTY_X}/...

        Attachments

          Activity

          Hide
          rpetti Rob Petti added a comment -

          You mean global environment variables? Or is this a feature provided by a plugin?

          Show
          rpetti Rob Petti added a comment - You mean global environment variables? Or is this a feature provided by a plugin?
          Hide
          mvuong Mario Vuong added a comment -

          Yes, the Jenkins global environment variables that are configured under Manage Jenkins > Configure System > Global properties.

          Show
          mvuong Mario Vuong added a comment - Yes, the Jenkins global environment variables that are configured under Manage Jenkins > Configure System > Global properties.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Rob Petti
          Path:
          src/main/java/hudson/plugins/perforce/PerforceSCM.java
          http://jenkins-ci.org/commit/perforce-plugin/09f3a7a05dd50335ece525822e66a58b55d81353
          Log:
          [FIXED JENKINS-11893] adding global env variables to config substitutions

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Rob Petti Path: src/main/java/hudson/plugins/perforce/PerforceSCM.java http://jenkins-ci.org/commit/perforce-plugin/09f3a7a05dd50335ece525822e66a58b55d81353 Log: [FIXED JENKINS-11893] adding global env variables to config substitutions
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_perforce #165
          [FIXED JENKINS-11893] adding global env variables to config substitutions

          Rob Petti :
          Files :

          • src/main/java/hudson/plugins/perforce/PerforceSCM.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_perforce #165 [FIXED JENKINS-11893] adding global env variables to config substitutions Rob Petti : Files : src/main/java/hudson/plugins/perforce/PerforceSCM.java

            People

            • Assignee:
              rpetti Rob Petti
              Reporter:
              mvuong Mario Vuong
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: