RE: Declarative script not archiving artefacts

2018-01-18 Thread David Aldrich
Thanks Björn

Removing $WORKSPACE/ fixed it.

Best regards

David

From: 'Björn Pedersen' via Jenkins Users 
[mailto:jenkinsci-users@googlegroups.com]
Sent: 18 January 2018 12:27
To: Jenkins Users <jenkinsci-users@googlegroups.com>
Subject: Re: Declarative script not archiving artefacts


always {
archiveArtifacts artifacts: 
'$WORKSPACE/RegressionTests/**/*.zip'

The artifacts should be  specified relative to the workspace, so the 
$WORKSPACE/ seems wrong. archiveArtifact will not archive files outside the 
current workspace

Björn
--
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+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/26229d4c-7cdc-46e5-b5c2-2b1221bcd69e%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/26229d4c-7cdc-46e5-b5c2-2b1221bcd69e%40googlegroups.com?utm_medium=email_source=footer>.
For more options, visit https://groups.google.com/d/optout.


Click 
here<https://www.mailcontrol.com/sr/lJCOTQB8zz3GX2PQPOmvUkjDae7bB5IgDBZmDc!jevdU65W!10TINzac!Wt8ul!pqMM7EKjmCeKZDddCOqP2wA==>
 to report this email as spam.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1f72264450a04959bdd226e927fe19de%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Re: Declarative script not archiving artefacts

2018-01-18 Thread 'Björn Pedersen' via Jenkins Users

always {
>
> archiveArtifacts artifacts: 
> '$WORKSPACE/RegressionTests/**/*.zip'
>
> The artifacts should be  specified relative to the workspace, so the 
$WORKSPACE/ seems wrong. archiveArtifact will not archive files outside the 
current workspace
 
Björn 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/26229d4c-7cdc-46e5-b5c2-2b1221bcd69e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.