The docs says you can only archive files in your workspace. Try to write
to the workspace instead:
--output-dir=${WORKSPACE}/report
On Wednesday, May 10, 2017 at 4:52:04 AM UTC-7, Berndt Jung wrote:
>
> I'm pretty new at this, but I'm stumped.
>
>
> Here is my stage block
>
> stage('Test') {
> steps {
> echo 'Testing ${env.JOB_NAME}:${env.BUILD_ID} on
> ${env.JENKINS_URL}..'
> sh """
> docker run -v /tmp/work/report:/report
> ${env.REPO}:${env.BUILD_ID} ./manage.py jenkins --enable-coverage
> --output-dir=/report
> ls /work/report
> cat /work/report/*.xml
> """
> archiveArtifacts artifacts: '/work/report/*.xml'
> // junit '/work/report/*.xml'
> }
> }
>
> The files are present in the 'sh' block, as the output of the ls and cat
> show. However, in the next step 'archiveArtifacts' and (if I enable it)
> junit, the files are not found. What am I missing?
>
>
> Thanks in advance,
>
>
> Berndt
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/ec67c378-f8ed-49aa-8e61-30f67326c3fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.