[JIRA] (JENKINS-47163) Use same workspace or node in multiple stages in pipeline

1 view
Skip to first unread message

victor@protocol.ai (JIRA)

unread,
Sep 21, 2018, 6:06:02 PM9/21/18
to jenkinsc...@googlegroups.com
Victor Bjelkholm assigned an issue to Victor Bjelkholm
 
Jenkins / New Feature JENKINS-47163
Use same workspace or node in multiple stages in pipeline
Change By: Victor Bjelkholm
Assignee: Andrew Bayer Victor Bjelkholm
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

s.rademacher@live.de (JIRA)

unread,
Apr 29, 2019, 7:25:03 AM4/29/19
to jenkinsc...@googlegroups.com
Stefan Rademacher commented on New Feature JENKINS-47163
 
Re: Use same workspace or node in multiple stages in pipeline

Is it correct, that the following example cannot be implemented with the current features, as described in https://jenkins.io/blog/2018/07/02/whats-new-declarative-piepline-13x-sequential-stages/ ?

pipeline {
  agent none
  stages {
    stage("sequential-1") {
      agent { label "linux" }
      stages {
        stage("first") { }
        // ...
      }
    }

    stage("sequential-2") {
      agent { label "windows" }
      stages {
        stage("second") { }
        // ...
      }
    }
	
    stage ('parallel') {
      parallel {
        stage("third") {
          // enforce usage of same linux agent as in "sequential-1"
        }
        stage('fourth') {
          // enforce usage of same windows agent as in "sequential-2"
        }
      }
    }
  }
}

 If there is a way to enforce the usage of the previously used node/workspace in the stages "third" and "fourth", without giving up the parallelization, I would appreciate your suggestions.

Thanks!

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:25 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Duplicate
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages