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

EnvInject - ability to execute the script first, then inject parameters via file

      Today, the parameters are read from file and injected, then the 'script' section runs. In my case, I'd like the script to create the file, and then the parameters will be injected from it. I can see why the other way around also makes sense, but I'd be happy if we can change the order. That would be most beneficial, as it means the parameters are injected before the build part and can be used elsewhere (For example, when setting build name!)

          [JENKINS-24437] EnvInject - ability to execute the script first, then inject parameters via file

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - Workaround: https://wiki.jenkins-ci.org/display/JENKINS/pre-scm-buildstep

          Code changed in jenkins
          User: Peter Darton
          Path:
          src/main/java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java
          src/main/java/org/jenkinsci/plugins/vsphere/VSphereGuestInfoProperty.java
          src/main/resources/org/jenkinsci/plugins/vSphereCloudSlaveTemplate/config.jelly
          src/main/resources/org/jenkinsci/plugins/vSphereCloudSlaveTemplate/help-guestInfoProperties.html
          src/main/resources/org/jenkinsci/plugins/vsphere/VSphereGuestInfoProperty/config.jelly
          src/test/java/org/jenkinsci/plugins/vsphere/tools/CloudProvisioningAlgorithmTest.java
          src/test/java/org/jenkinsci/plugins/vsphere/tools/CloudProvisioningStateTest.java
          http://jenkins-ci.org/commit/vsphere-cloud-plugin/de617b3c31b302e3b74ac75396001217aa8df606
          Log:
          Enhancement: JENKINS-24437: vSphereCloudSlaveTemplate now has a
          guestInfoProperties field which can be used to pass data to the
          (newly-created) VM.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Peter Darton Path: src/main/java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java src/main/java/org/jenkinsci/plugins/vsphere/VSphereGuestInfoProperty.java src/main/resources/org/jenkinsci/plugins/vSphereCloudSlaveTemplate/config.jelly src/main/resources/org/jenkinsci/plugins/vSphereCloudSlaveTemplate/help-guestInfoProperties.html src/main/resources/org/jenkinsci/plugins/vsphere/VSphereGuestInfoProperty/config.jelly src/test/java/org/jenkinsci/plugins/vsphere/tools/CloudProvisioningAlgorithmTest.java src/test/java/org/jenkinsci/plugins/vsphere/tools/CloudProvisioningStateTest.java http://jenkins-ci.org/commit/vsphere-cloud-plugin/de617b3c31b302e3b74ac75396001217aa8df606 Log: Enhancement: JENKINS-24437 : vSphereCloudSlaveTemplate now has a guestInfoProperties field which can be used to pass data to the (newly-created) VM.

            gbois Gregory Boissinot
            ykaul Yaniv Kaul
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: