Trying to get the skip to work
Some checks reported errors
Gitsokyo/bot-base/pipeline/pr-master Something is wrong with the build of this commit
Some checks reported errors
Gitsokyo/bot-base/pipeline/pr-master Something is wrong with the build of this commit
This commit is contained in:
parent
bb20354c19
commit
81f63111e6
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -53,7 +53,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
scipt {
|
script {
|
||||||
echo "Hello world"
|
echo "Hello world"
|
||||||
def SUB_PATH = """${sh(
|
def SUB_PATH = """${sh(
|
||||||
returnStdout: true,
|
returnStdout: true,
|
||||||
@ -62,16 +62,16 @@ 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}"]) {
|
sshagent(credentials: ['1cf72f47-b70c-4f90-a958-020956099d19']) {
|
||||||
sh '''cd doc
|
withEnv(["SUB_PATH=${SUB_PATH}"]) {
|
||||||
rm -f rsync.log
|
sh '''cd doc
|
||||||
ssh -o StrictHostKeyChecking=no -o BatchMode=yes ${DEPLOY_HOST} mkdir -p ${DEPLOY_PATH}${SUB_PATH}/
|
rm -f rsync.log
|
||||||
rsync -aze 'ssh -o StrictHostKeyChecking=no -o BatchMode=yes' \
|
ssh -o StrictHostKeyChecking=no -o BatchMode=yes ${DEPLOY_HOST} mkdir -p ${DEPLOY_PATH}${SUB_PATH}/
|
||||||
--log-file=rsync.log \
|
rsync -aze 'ssh -o StrictHostKeyChecking=no -o BatchMode=yes' \
|
||||||
--delete \
|
--log-file=rsync.log \
|
||||||
./build/html/ ${DEPLOY_HOST}:${DEPLOY_PATH}${SUB_PATH}/'''
|
--delete \
|
||||||
}
|
./build/html/ ${DEPLOY_HOST}:${DEPLOY_PATH}${SUB_PATH}/'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user