Trying to get the skip to work
Some checks failed
Gitsokyo/bot-base/pipeline/pr-master There was a failure building this commit

This commit is contained in:
Suwako Moriya 2020-04-26 21:14:10 +02:00
parent aa30652a5a
commit b9a2a0eb6d
Signed by: SuwakoMmh
GPG Key ID: A27482B806F13CD5

5
Jenkinsfile vendored
View File

@ -53,8 +53,8 @@ pipeline {
} }
} }
steps { steps {
sshagent(credentials: ['1cf72f47-b70c-4f90-a958-020956099d19']) {
scipt { scipt {
echo "Hello world"
def SUB_PATH = """${sh( def SUB_PATH = """${sh(
returnStdout: true, returnStdout: true,
script: 'echo "${GIT_BRANCH#*/}"' script: 'echo "${GIT_BRANCH#*/}"'
@ -62,6 +62,8 @@ pipeline {
if (buildingTag()) { if (buildingTag()) {
SUB_PATH="${env.TAG_NAME}" SUB_PATH="${env.TAG_NAME}"
} }
}
sshagent(credentials: ['1cf72f47-b70c-4f90-a958-020956099d19']) {
withEnv(["SUB_PATH=${SUB_PATH}"]) { withEnv(["SUB_PATH=${SUB_PATH}"]) {
sh '''cd doc sh '''cd doc
rm -f rsync.log rm -f rsync.log
@ -73,7 +75,6 @@ pipeline {
} }
} }
} }
}
post { post {
failure { failure {
sh 'cat doc/rsync.log' sh 'cat doc/rsync.log'