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

Parallel vSphere VM Creation Support

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • vsphere-cloud-plugin
    • None

      Currently, it does not appear that the vsphere plugin supports dynamic creation of multiple nodes within a parallel block in pipelines.

      My cloud is currently configured under the 'elastic' label, and the following code executes more or less in serial (with a runtime of ~4 minutes).

      parallel (
          "stream 1: " : {
             node("elastic") {
                  bat 'ping 127.0.0.1 -n 60 -w 10000'
                  bat 'echo done'
              } 
          },
          "stream 2: " : {
             node("elastic") {
                  bat 'ping 127.0.0.1 -n 60 -w 10000'
                  bat 'echo done'
              } 
          },
          "stream 3: " : {
             node("elastic") {
                  bat 'ping 127.0.0.1 -n 60 -w 10000'
                  bat 'echo done'
              } 
          },
          "stream 4: " : {
             node("elastic") {
                  bat 'ping 127.0.0.1 -n 60 -w 10000'
                  bat 'echo done'
              } 
          }
      )
      

      Is this the expected behavior, or is there something else going on here?

            Unassigned Unassigned
            jgamble Julian Gamble
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: