Parallel Build issue

152 views
Skip to first unread message

Somshekar C Kadam

unread,
May 4, 2018, 1:53:56 AM5/4/18
to jenkins...@googlegroups.com
Hi All, 

I have setup a parallel build using data pipeline. This build machine is on VM. 

============
pipeline {
     
         stages {
 
            stage('ParallelBuild') {

                   parallel {

                          stage(‘BuildIntel’) {
                              agent {
                           ..
                           ;;;
                            
                           stage(‘BuildArm’) {
                               agent {
========================


Workspace for Intel 

[‘BuildIntel’] [CYELP_feature-3WJHZSTZRAESMPGCATYIL555HUF7XSCPTK2GXMGWNX7W5MCBMX4A]

Workspace for Arm
[‘BuildARM’] [CYELP_feature-3WJHZSTZRAESMPGCATYIL555HUF7XSCPTK2GXMGWNX7W5MCBMX4A@2


Build for Arm is failing 
[‘BuildARM’]     Error, you have an invalid character (@) in your COREBASE directory path. Please move the installation to a directory which doesn't include any @ characters.

as it is same workspace dir wit @2 extra

to make it build I can create a separate dir in workspace and proceed. 
Is it the right solution or any other fix is better please suggest 

thanks in advance

Regards
Somshekar C Kadam



Christian....@continental-corporation.com

unread,
May 4, 2018, 4:47:14 PM5/4/18
to jenkins...@googlegroups.com
Hi Somshekar,

We had the same issue with our build environment and I saw that we had 2
possible solutions.
1.
https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+properties
amongst others gives you hudson.slaves.WorkspaceList which you can change
to set a different token.
2. use a ws(){} block in your pipeline to change to a different workspace.
(for declarative Pipeline this is the customWorkspace option of the agent
keyword (see. https://jenkins.io/doc/book/pipeline/syntax/#agent)

Since I don't control the Jenkins master in our project I used the second
approach. Especially since I am building in parallel on the same node I am
reusing the original workspace and all checked out sources and build in a
new subdirectory of the workspace.

Hope this helps.
Christian

jenkins...@googlegroups.com schrieb am 04.05.2018 07:53:42:
> --
> You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/
> d/msgid/jenkinsci-users/CALbGK-pAedn1a8aeFaMYq%3DPWsG44JvjRsqaOe_f-
> zUkYLHitWQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Mit freundlichen Gruessen/Best regards,

Christian Beushausen
I S&T PD SW SWF
Interior Systems & Technology

Besucheradresse / Visitor address:
Continental Automotive GmbH
Philipsstrasse 1, 35576 Wetzlar, Germany

Rechnungsadresse / Invoice address:
Continental Automotive GmbH
Philipsstrasse 1, 35576 Wetzlar, Germany

Telefon/Phone: +49 6441 370-9031
Mobile: +49 151 74660227
Telefax: +49 6441 37013-9031
E-Mail: Christian....@continental-corporation.com

http://www.continental-automotive.com
________________________________________________________________________

Continental Automotive GmbH, Vahrenwalder Str. 9, D-30165 Hannover
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Helmut
Matschi
Geschaeftsfuehrer/Managing Director: Georg Sistermanns, Harald Stuhlmann
Sitz der Gesellschaft/Registered Office: Hannover
Registergericht/Registered Court: Amtsgericht Hannover, HRB 59424
USt.-ID-Nr./VAT-ID-No. DE814950663
________________________________________________________________________

Proprietary and confidential. Distribution only by express authority of
Continental AG or its subsidiaries.

Somshekar C Kadam

unread,
May 5, 2018, 3:41:30 AM5/5/18
to jenkins...@googlegroups.com
Hi Christian, 

Thanks a lot for letting me know solution. It helps a lot. 

I will use customworkspace, that suits better.

Thanks for pointing at the proper site Docs. 

regards
Somshekar

Regards
Somshekar C Kadam

On Fri, May 4, 2018 at 8:17 PM, <Christian....@continental-corporation.com> wrote:
Hi Somshekar,

We had the same issue with our build environment and I saw that we had 2
possible solutions.
1.
https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+properties
amongst others gives you hudson.slaves.WorkspaceList which you can change
to set a different token.
2. use a ws(){} block in your pipeline to change to a different workspace.
(for declarative Pipeline this is the customWorkspace option of the agent
keyword (see. https://jenkins.io/doc/book/pipeline/syntax/#agent)

Since I don't control the Jenkins master in our project I used the second
approach. Especially since I am building in parallel on the same node I am
reusing the original workspace and all checked out sources and build in a
new subdirectory of the workspace.

Hope this helps.
Christian


> To view this discussion on the web visit https://groups.google.com/
> d/msgid/jenkinsci-users/CALbGK-pAedn1a8aeFaMYq%3DPWsG44JvjRsqaOe_f-
> zUkYLHitWQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Mit freundlichen Gruessen/Best regards,

Christian Beushausen
I S&T PD SW SWF
Interior Systems & Technology

Besucheradresse / Visitor address:
Continental Automotive GmbH
Philipsstrasse 1, 35576 Wetzlar, Germany

Rechnungsadresse / Invoice address:
Continental Automotive GmbH
Philipsstrasse 1, 35576 Wetzlar, Germany

Telefon/Phone: +49 6441 370-9031
Mobile: +49 151 74660227
Telefax: +49 6441 37013-9031


http://www.continental-automotive.com
________________________________________________________________________

Continental Automotive GmbH, Vahrenwalder Str. 9, D-30165 Hannover
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Helmut
Matschi
Geschaeftsfuehrer/Managing Director: Georg Sistermanns, Harald Stuhlmann
Sitz der Gesellschaft/Registered Office: Hannover
Registergericht/Registered Court: Amtsgericht Hannover, HRB 59424
USt.-ID-Nr./VAT-ID-No. DE814950663
________________________________________________________________________

Proprietary and confidential. Distribution only by express authority of
Continental AG or its subsidiaries.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/OF2CDE8E6F.F579456E-ONC1258283.0050379E-C1258283.00514802%40continental-corporation.com.
Reply all
Reply to author
Forward
0 new messages