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 art

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

Declarative script not archiving artefacts

2018-01-18 Thread David Aldrich
Hi I have a declarative script that is not archiving the build artefacts. The structure of the script is: pipeline { agent { label "sim07" } options { buildDiscarder(logRotator(numToKeepStr: '20')) } triggers { pollSCM('H 20 * * 1-5') } stages {