Skip to content

Commit

Permalink
chore(Jenkinsfile) capture azcopy logs when deployment fails (#1989)
Browse files Browse the repository at this point in the history
  • Loading branch information
dduportal authored Nov 7, 2024
1 parent 5981b74 commit abe5d02
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,19 @@ pipeline {
--put-md5 \
--local-hash-storage-mode=HiddenFiles \
./plugins/plugin-site/public/ "${FILESHARE_SIGNED_URL}"
# Retrieve azcopy logs to archive them
cat /home/jenkins/.azcopy/*.log > azcopy.log
'''
archiveArtifacts 'azcopy.log'
}
}
}
post {
failure {
// Retrieve azcopy logs and archive them when deployment fails
sh '''
cat /home/jenkins/.azcopy/*.log > azcopy.log
'''
archiveArtifacts 'azcopy.log'
}
}
}
}
}

0 comments on commit abe5d02

Please sign in to comment.