add rollback to gitea jenkinsfile

This commit is contained in:
2020-04-12 00:00:27 -04:00
parent ae4048ad5f
commit ba6fd25455

View File

@@ -47,6 +47,16 @@ pipeline {
sh "curl -If http://dkhost:10080"
}
}
post {
failure {
dir(WORKDIR) {
sh """
export DOCKER_HOST=${DOCKER_HOST}
docker service rollback gitea
"""
}
}
}
}
}