[JIRA] (JENKINS-61257) Parallel builds not creating different workspaces

3 views
Skip to first unread message

alexandre.massiot@corwave.com (JIRA)

unread,
Feb 27, 2020, 7:43:02 AM2/27/20
to jenkinsc...@googlegroups.com
Alexandre Massiot created an issue
 
Jenkins / Bug JENKINS-61257
Parallel builds not creating different workspaces
Issue Type: Bug Bug
Assignee: Unassigned
Components: workflow-job-plugin
Created: 2020-02-27 12:42
Environment: pipeline 2.6
Priority: Minor Minor
Reporter: Alexandre Massiot

Hi,

I am using the parallelization capabilities of Jenkins for my builds.

From what I read, what I should be expecting is that each parallel step will create its own workspace, named after the "main" workspace adding @[number].

The issue I am experiencing is that only one workspace is being created and is shared among all steps. Therefor some of my tests fails (since they modifies some files).

I didn't find any option or anything that prevent the steps from creating their own workspace.

From what I understood, by default each step will create it and you have to write a custom workspace dir in the Jenkinsfile to bypass this behavior.

Here is an overview of my Jenkinsfile :

 stages {
        ...
        stage ('Build') {
            parallel {
                stage('xxx') {
                    steps {
                        ...
                    }
                    post {
                        success {
                            ...
                        }
                    }
                }                
                stage('yyy') {
                    steps {
                        ...
                    }
                    post {
                        success {
                            ...
                        }
                    }
                }
            ...

Everything is fine with the tests since it does run on another Jenkins server without any problems, so it might be on the configuration of the Jenkins server.

Thank in advance for the help.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages