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

Terminates the running jobs running from same instance using concurrent builds via pipline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline
    • OS: Ubuntu
    • Blue Ocean - Candidates
    •  URL to the release notes is preferred.

      Example:

      1. Build [*jenkins_job_1*]: calls an test.py python script with job build  ID 1
      2. Build [*jenkins_job_1*]: calls an test.py python script with job build ID 2
      3. repeat as necessary
      4. each instance of the job runs simultaneously, rather than through a queue.
      5. when any one of the job is terminated, say job build 2, the job build 1 also gets terminate

       

      node("test") {

      stage('Hello') {

      echo 'Hello World'
      dir('/home/')

      { def exec = sh label: 'test',returnStatus: true, script: """python test.py""" }

      }

      }

       

      Below is

            Unassigned Unassigned
            prabhu088 prabhu goud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: