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

Inject environment variables for a Job

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      As developer I would like to get the enviroment variables when I'm working with a Job. For that, we have the getEnvironment method, designed for:

      Creates an environment variable override for launching processes for this project. This is for process launching outside the build execution (such as polling, tagging, deployment, etc.) that happens in a context of a specific job.

      Use case
      1. I'm using a Subversion repository
      2. My repository URL is parametized, for example: https://server/project1/$MODULE
      3. I want to do polling
      Use case
      1. Validate Subversion repositories when its URL is parametized.

      This bug would be solved with this improvement.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Seems to me that this is simply a duplicate of JENKINS-29340, which was miscategorized as a Subversion plugin issue.

            Show
            jglick Jesse Glick added a comment - Seems to me that this is simply a duplicate of JENKINS-29340 , which was miscategorized as a Subversion plugin issue.
            Hide
            recena Manuel Recena Soto added a comment -

            A PR has been sent.

            Show
            recena Manuel Recena Soto added a comment - A PR has been sent.
            Hide
            recena Manuel Recena Soto added a comment -

            Jesse Glick Not exactly. Here JENKINS-29340 describes the bug and the solutions has two parts. One of them in Subversion Plugin and the other, in EnvInject Plugin.

            Show
            recena Manuel Recena Soto added a comment - Jesse Glick Not exactly. Here JENKINS-29340 describes the bug and the solutions has two parts. One of them in Subversion Plugin and the other, in EnvInject Plugin.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Manuel Recena Soto, please add links between issues if you create the related ones. I've added a link to JENKINS-29340

            Show
            oleg_nenashev Oleg Nenashev added a comment - Manuel Recena Soto , please add links between issues if you create the related ones. I've added a link to JENKINS-29340
            Hide
            recena Manuel Recena Soto added a comment -

            This issue has a PR pending to be merged.

            Show
            recena Manuel Recena Soto added a comment - This issue has a PR pending to be merged.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: recena
            Path:
            pom.xml
            src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuildVariableContributor.java
            src/main/java/org/jenkinsci/plugins/envinject/EnvInjectEnvVarsContributor.java
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/config.jelly
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/help-propertiesContent.html
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/help-propertiesContent_ja.html
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/help-propertiesFilePath.html
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepBuildVariables.html
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepJenkinsSystemVariables.html
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-propertiesContent.html
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-propertiesContent_ja.html
            src/main/webapp/help.html
            src/test/java/org/jenkinsci/plugins/envinject/EnvInjectEnvVarsContributorTest.java
            http://jenkins-ci.org/commit/envinject-plugin/b34ae597b8f908872b044a728e0597d676f9014a
            Log:
            JENKINS-29817 Inject environment variables for a Job

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: recena Path: pom.xml src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuildVariableContributor.java src/main/java/org/jenkinsci/plugins/envinject/EnvInjectEnvVarsContributor.java src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/config.jelly src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/help-propertiesContent.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/help-propertiesContent_ja.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/help-propertiesFilePath.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepBuildVariables.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepJenkinsSystemVariables.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-propertiesContent.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-propertiesContent_ja.html src/main/webapp/help.html src/test/java/org/jenkinsci/plugins/envinject/EnvInjectEnvVarsContributorTest.java http://jenkins-ci.org/commit/envinject-plugin/b34ae597b8f908872b044a728e0597d676f9014a Log: JENKINS-29817 Inject environment variables for a Job
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Manuel Recena
            Path:
            pom.xml
            src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuildVariableContributor.java
            src/main/java/org/jenkinsci/plugins/envinject/EnvInjectEnvVarsContributor.java
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/config.jelly
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/help-propertiesContent.html
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/help-propertiesContent_ja.html
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/help-propertiesFilePath.html
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepBuildVariables.html
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepJenkinsSystemVariables.html
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-propertiesContent.html
            src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-propertiesContent_ja.html
            src/main/webapp/help.html
            src/test/java/org/jenkinsci/plugins/envinject/EnvInjectEnvVarsContributorTest.java
            http://jenkins-ci.org/commit/envinject-plugin/95c1f0eac808580d21c9e71e9fe9b55ab085cb85
            Log:
            Merge pull request #56 from recena/JENKINS-29817

            JENKINS-29817 Inject environment variables for a Job

            Compare: https://github.com/jenkinsci/envinject-plugin/compare/abca0ed5091e...95c1f0eac808

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Manuel Recena Path: pom.xml src/main/java/org/jenkinsci/plugins/envinject/EnvInjectBuildVariableContributor.java src/main/java/org/jenkinsci/plugins/envinject/EnvInjectEnvVarsContributor.java src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/config.jelly src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/help-propertiesContent.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/help-propertiesContent_ja.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectBuildWrapper/help-propertiesFilePath.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepBuildVariables.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-keepJenkinsSystemVariables.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-propertiesContent.html src/main/resources/org/jenkinsci/plugins/envinject/EnvInjectJobProperty/help-propertiesContent_ja.html src/main/webapp/help.html src/test/java/org/jenkinsci/plugins/envinject/EnvInjectEnvVarsContributorTest.java http://jenkins-ci.org/commit/envinject-plugin/95c1f0eac808580d21c9e71e9fe9b55ab085cb85 Log: Merge pull request #56 from recena/ JENKINS-29817 JENKINS-29817 Inject environment variables for a Job Compare: https://github.com/jenkinsci/envinject-plugin/compare/abca0ed5091e...95c1f0eac808
            Hide
            recena Manuel Recena Soto added a comment -

            This PR has been merged.

            Show
            recena Manuel Recena Soto added a comment - This PR has been merged.

              People

              • Assignee:
                recena Manuel Recena Soto
                Reporter:
                recena Manuel Recena Soto
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: