Zipping build artifacts on jenkins

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Zipping build artifacts on jenkins

Faad Sayaou
I am having difficulties zipping results from a build process in a jenkins pipeline. As of now, I am getting just an empty zipped directory called  The build result is under HelloJenkins/bin/release and I will like to zip the entire zip folder. Below is my code

stage('build') {
                 bat '"C:\\Program Files\\dotnet\\dotnet.exe" build HelloJenkins.sln /p:Configuration=Release /p:Platform=\"Any CPU\"'

 stage('zip stage') {
                bat 'mkdir archive'
                zip zipFile: '', archive: true, dir: 'archive'
                archiveArtifacts artifacts: '', fingerprint: true

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 [hidden email].
To view this discussion on the web visit
For more options, visit