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

Inject environment variables for a Job

    XMLWordPrintable

Details

    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

            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.

            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.

            A PR has been sent.

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

            jglick 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.

            recena Manuel Recena Soto added a comment - jglick 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.
            oleg_nenashev Oleg Nenashev added a comment -

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

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

            This issue has a PR pending to be merged.

            recena Manuel Recena Soto added a comment - This issue has a PR pending to be merged.

            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

            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

            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

            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

            This PR has been merged.

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: