influencing workspace name

13 views
Skip to first unread message

Nigel Magnay

unread,
Dec 7, 2015, 10:38:26 AM12/7/15
to jenkin...@googlegroups.com
Hi -

I have projects building with workflow multibranch.

The directory these build in, chosen by jenkins, is
/home/jenkins/projectname/branchname

Since my branch is called dev/main, I get

/home/jenkins/foo/dev%2fmain

Which is fine, but turns out quite a few maven things dislike having a % in the path name. Is there an easy way to influence the directory naming scheme to avoid 'special' characters?

Robert Sandell

unread,
Dec 7, 2015, 10:43:45 AM12/7/15
to jenkin...@googlegroups.com
Maybe ugly, maybe elegant ;)

node("something") {
  ws("my-custom-name") {
    //rest of flow
  }
}


/B

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAPYP83TdBExvMZ7wqO_g4hk4E_-dcjH2RCyKriRfkhETJ3K%2BSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Robert Sandell
Software Engineer
CloudBees Inc.

Robert Sandell

unread,
Dec 7, 2015, 10:45:32 AM12/7/15
to jenkin...@googlegroups.com
At least that works in a standard workflow, don't know about multibranch, but I don't think there are any special magic in there to stop this.

/B

Jesse Glick

unread,
Dec 7, 2015, 3:07:00 PM12/7/15
to Jenkins Dev
On Mon, Dec 7, 2015 at 10:38 AM, Nigel Magnay <nigel....@gmail.com> wrote:
> quite a few maven things dislike having a % in the path name

Have you reported bugs for Maven core/plugins in the cases you have discovered?
Reply all
Reply to author
Forward
0 new messages