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

EnvInject Plugin 1.30 does not display all properties on job config page

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: envinject-plugin
    • Labels:
      None
    • Similar Issues:
      Show 5 results

      Description

      I upgraded from EnvInject Plugin 1.28 to 1.30. The result was that, for some jobs, variables I have previously defined are not displayed on the job configuration page.

      This is where I have selected "Inject environment variables to the build process", and have entries in the "Properties Content" box. Even though the entries are on teh job config file, they are not always displayed in the "Properties Content" box.

      When the config.xml looks like this, the "Properties Content" box IS correctly populated:

          <EnvInjectBuildWrapper>
            <info>
              <propertiesContent>branchTagPath=v0.9</propertiesContent>
              <loadFilesFromMaster>false</loadFilesFromMaster>
            </info>
          </EnvInjectBuildWrapper>
      

      When the config.xml looks like this, the "Properties Content" box s incorrectly displays EMPTY:

       
          <EnvInjectBuildWrapper>
            <info>
              <propertiesContentMap class="linked-hash-map">
                <entry>
                  <string>materialize_component</string>
                  <string>sda</string>
                </entry>
                <entry>
                  <string>materialize_category</string>
                  <string>sda</string>
                </entry>
                <entry>
                  <string>materialize_version</string>
                  <string>v0.9</string>
                </entry>
                <entry>
                  <string>materialize_workspace_path</string>
                  <string>${WORKSPACE}/materialize_workspace</string>
                </entry>
              </propertiesContentMap>
              <loadFilesFromMaster>false</loadFilesFromMaster>
            </info>
          </EnvInjectBuildWrapper>
      

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectInfo.java
          src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesGetter.java
          http://jenkins-ci.org/commit/envinject-plugin/9fa3650160483ba454cae1ff4404795c455a3f80
          Log:
          Fix JENKINS-12936

          Compare: https://github.com/jenkinsci/envinject-plugin/compare/0324aaa...9fa3650

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/envinject/EnvInjectInfo.java src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesGetter.java http://jenkins-ci.org/commit/envinject-plugin/9fa3650160483ba454cae1ff4404795c455a3f80 Log: Fix JENKINS-12936 Compare: https://github.com/jenkinsci/envinject-plugin/compare/0324aaa...9fa3650
          Hide
          gbois Gregory Boissinot added a comment -

          It was a bug display.
          Properties were correctly injected.
          Anyway, fix in 1.31

          Show
          gbois Gregory Boissinot added a comment - It was a bug display. Properties were correctly injected. Anyway, fix in 1.31
          Hide
          mwebber mwebber added a comment -

          Thanks. 1.31 isn't released yet, will it be soon?

          Show
          mwebber mwebber added a comment - Thanks. 1.31 isn't released yet, will it be soon?
          Hide
          gbois Gregory Boissinot added a comment -

          Yes released.
          It's always take some time to have the plugin available in the update center.
          You can check and download latest version directly in the repository:
          http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/envinject

          Show
          gbois Gregory Boissinot added a comment - Yes released. It's always take some time to have the plugin available in the update center. You can check and download latest version directly in the repository: http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/envinject

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              mwebber mwebber
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: