Archive Artifacts In Jenkins


Answer :

You cannot remove the 'prefix' of a path using just the archive artifacts setting. (Some of the upload extensions do support this - the Publish over FTP plugin for example)

If you really need this a simple solution is to add an extra build step that copies your Debug folder to the root of the project workspace.


A cleaner way might be to have a stage dedicated to producing artifacts, set up with the appropriate working directory:

    stage('Release') {         steps {             dir('MyApp1/MyApp1/bin/Debug') {                 archiveArtifacts artifacts: '**', fingerprint: true             }         }     } 

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?