What characters are illegal to include in job names?

2013-10-14 Thread Maureen Barger
Hi - I am having a hard time finding any list of characters we should not use in job names. Are there any? Thanks. -- 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

Re: What characters are illegal to include in job names?

2013-10-14 Thread Scott Evans
I'm not familiar with any offhand which are illegal, though I'd suggest as best practices to avoid anything that's not a standard alphabetic, numeric, or dash/underscore. Depending on what platform(s) you're working on, I'd suggest for sure to avoid spaces, as that just gets weird with some

Re: What characters are illegal to include in job names?

2013-10-14 Thread Maureen Barger
Thanks Scott. I am having trouble copying artifacts from another job using $COPYARTIFACT_BUILD_NUMBER. The job in question has a dot and hyphens in the name (ie MY-PROJECT-1.0) The documentation says that anything not a letter is replaced with _ (ie projectName.toUpperCase().replaceAll([^A-Z]+,

RE: What characters are illegal to include in job names?

2013-10-14 Thread Matthew.Webber
Since job names form part of Jenkins URLs, I think the main limitation is characters which would need escaping when forming a URL (e.g., slash) From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Scott Evans Sent: 14 October 2013 16:40 To:

RE: What characters are illegal to include in job names?

2013-10-14 Thread Matthew.Webber
Ok, so your question is not What characters are illegal to include in job names but rather how does the Copy Artifact plugin derive an environment variable name from a jobname, in order to report the job number I've had the same problem with $COPYARTIFACT_BUILD_NUMBER - it seems impossible

Re: What characters are illegal to include in job names?

2013-10-14 Thread Maureen Barger
Matthew you are right, I assumed that was the root of the issue. I will try as you suggest. Thanks! On Mon, Oct 14, 2013 at 11:59 AM, matthew.web...@diamond.ac.uk wrote: Ok, so your question is not What characters are illegal to include in job names but rather how does the Copy

Re: What characters are illegal to include in job names?

2013-10-14 Thread Maureen Barger
Hmm well printenv shows JOB_NAME=MY-PROJECT-1.0. Not much help there. Any other ideas? On Mon, Oct 14, 2013 at 12:05 PM, Maureen Barger mobar...@gmail.com wrote: Matthew you are right, I assumed that was the root of the issue. I will try as you suggest. Thanks! On Mon, Oct 14, 2013 at 11:59

Re: What characters are illegal to include in job names?

2013-10-14 Thread Maureen Barger
Would you believe it just started working? SMH. Ended up with COPYARTIFACT_BUILD_NUMBER_MY_PROJECT_ I guess the stars were not aligned before ... Thanks for all the help! On Mon, Oct 14, 2013 at 12:22 PM, Maureen Barger mobar...@gmail.com wrote: Hmm well printenv shows JOB_NAME=MY-PROJECT-1.0.