When using Declarative Jenkins Pipelines
pipeline { agent { node { label 'windows && development' } } stages { stage('Archive'){ steps { archiveArtifacts artifacts: 'Test/bin/Release/Test.exe', caseSensitive: false, defaultExcludes: false, onlyIfSuccessful: true } } } }
I can not download artifact from Jenkins under my branch project eg.
https://jenkins.xxx.com/job/Marianob85/job/project/job/master/
edit.
Problem occur only if artifacts is nested im more than one directory. So if artefact will be located in the root of project and script is changed to:
archiveArtifacts artifacts: 'Test/Test.exe', caseSensitive: false, defaultExcludes: false, onlyIfSuccessful: true
the artefact link on Jenkins web site working correct.