We're seeing a lot of instances of jobs failing to start due to left-over files
from the containerized build. When calling chown, reset the group as well. Also,
mention some details about the build to make log analysis easier.
Signed-off-by: Zack Cerza <zack@cerza.org>
}
}
post {
- always {
- script {
- sh 'podman unshare chown -R 0 $WORKSPACE/dist/ceph'
- }
- }
success {
script {
def os = get_os_info(env.DIST)
}
}
post {
+ success {
+ sh 'echo success: $DIST $ARCH $FLAVOR'
+ }
+ unsuccessful {
+ sh 'echo failure: $DIST $ARCH $FLAVOR'
+ }
always {
script {
- sh 'podman unshare chown -R 0 $WORKSPACE/dist/ceph'
+ sh 'hostname'
+ sh 'podman unshare chown -R 0:0 ${WORKSPACE}/'
}
}
}