[JIRA] (JENKINS-60429) Replace @ symbol in workspace suffix path for parallel builds

6 views
Skip to first unread message

nicolas.hess@gmail.com (JIRA)

unread,
Dec 10, 2019, 5:51:05 PM12/10/19
to jenkinsc...@googlegroups.com
Nicolas Hess created an issue
 
Jenkins / Improvement JENKINS-60429
Replace @ symbol in workspace suffix path for parallel builds
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: core
Created: 2019-12-10 22:50
Environment: Confirmed with Jenkins 2.204 with default docker image.
Agents on CentOS7 and Ubuntu-16.04/18.04
Priority: Minor Minor
Reporter: Nicolas Hess

Hi all,

When Jenkins runs the same job in parallel, it creates a new folder and add the suffix @2, @3 and so on. This is great and allows us to runs multiple things with different parameter without interrupting or waiting for the previous build (either in multi-branch pipeline or freestyle job).

However a few compilers or build tools don't appreciate when the path contains the '@' character (like yocto, fern for selinux or more recently proguard). Thereby, some Jenkinsfile have to use a few more line to replace @ symbol from current workspace and then execute everything inside in a second stage.

As it happened for different tools and must be constraining for other people, I'd like to see if Jenkins can update the suffix from @ symbol to something else?

Personally I replace @ to __ (double underscores) and it's been working well so far.
Thank you!

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

m.winter@sap.com (JIRA)

unread,
Jan 29, 2020, 7:23:02 PM1/29/20
to jenkinsc...@googlegroups.com

nicolas.hess@gmail.com (JIRA)

unread,
Jan 30, 2020, 12:54:02 PM1/30/20
to jenkinsc...@googlegroups.com

m.winter@sap.com (JIRA)

unread,
Jan 30, 2020, 3:36:02 PM1/30/20
to jenkinsc...@googlegroups.com
Markus Winter closed an issue as Not A Defect
 
Change By: Markus Winter
Status: Open Closed
Resolution: Not A Defect

stefan.drissen@gmail.com (JIRA)

unread,
Apr 22, 2020, 4:48:02 AM4/22/20
to jenkinsc...@googlegroups.com
Stefan Drissen commented on Improvement JENKINS-60429
 
Re: Replace @ symbol in workspace suffix path for parallel builds

While it's great that the default symbol can be changed, it is very unfortunate that the default is @ to start with.

In addition to the cases named above, I just spent way too much time figuring out that the @ in the workspace directory that was being passed to a batch file (mergeprop.bat) that was calling another batch file (ubutil.bat) that was starting a JVM with -m silent, was silently failing. After removing the silent option I finally saw the error starting JVM 'unable to parse parameter' - since @ has a special meaning when starting a JVM.

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