This enhancement should allow users to have the environment variables below on their builds. In this way, they can know for example which environment and what was the path which triggered the build.

      envVars.put("DEPLOYMENT_ENV", StringUtils.join(deploymentHost, ","));
      env.put("DEPLOYMENT_HOST", hostRecord.getHost());
      env.put("DEPLOYMENT_PATH", hostRecord.getPath());
      env.put("DEPLOYMENT_TIMESTAMP", hostRecord.getTimestampString());

          [JENKINS-33988] Inject deployment env variables in the build

          Félix Belzunce Arcos created issue -
          Félix Belzunce Arcos made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Code changed in jenkins
          User: Felix Belzunce Arcos
          Path:
          src/main/java/org/jenkinsci/plugins/deployment/DeploymentTrigger.java
          src/main/java/org/jenkinsci/plugins/deployment/HostRecords.java
          src/main/resources/org/jenkinsci/plugins/deployment/DeploymentTrigger/help.html
          http://jenkins-ci.org/commit/deployment-notification-plugin/63a9cd8ea6fa4bd8c3d21c65197ba65d2e1a052a
          Log:
          Inject deployment env variables in the build

          [FIXED JENKINS-33988] Inject deployment env variables in the build

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Felix Belzunce Arcos Path: src/main/java/org/jenkinsci/plugins/deployment/DeploymentTrigger.java src/main/java/org/jenkinsci/plugins/deployment/HostRecords.java src/main/resources/org/jenkinsci/plugins/deployment/DeploymentTrigger/help.html http://jenkins-ci.org/commit/deployment-notification-plugin/63a9cd8ea6fa4bd8c3d21c65197ba65d2e1a052a Log: Inject deployment env variables in the build [FIXED JENKINS-33988] Inject deployment env variables in the build
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170002 ] New: JNJira + In-Review [ 198759 ]

            fbelzunc Félix Belzunce Arcos
            fbelzunc Félix Belzunce Arcos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: