Update deploy location
# Conflicts: # Jenkinsfile
This commit is contained in:
parent
3a455d8cfa
commit
ec512d789b
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -6,13 +6,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
SPHINXOPTS = '-w sphinx-build.log'
|
SPHINXOPTS = '-w sphinx-build.log'
|
||||||
DEPLOY_HOST = 'docs@moriya.zapto.org'
|
DEPLOY_HOST = 'webroot@colabois.fr'
|
||||||
WEBSITE = 'https://moriya.zapto.org'
|
PROJECT_NAME = 'PDBB'
|
||||||
PROJECT_NAME = 'bot-base'
|
DEPLOY_DOC_PATH = "www/docs.pdba.colabois.fr/${env.PROJECT_NAME}/"
|
||||||
DOC_PATH = "/docs/${env.PROJECT_NAME}/"
|
DEPLOY_REL_PATH = "www/releases.pdba.colabois.fr/${env.PROJECT_NAME}/"
|
||||||
REL_PATH = "/releases/${env.PROJECT_NAME}/"
|
|
||||||
DEPLOY_DOC_PATH = "www${env.DOC_PATH}"
|
|
||||||
DEPLOY_REL_PATH = "www${env.REL_PATH}"
|
|
||||||
RELEASE_ROOT = "src"
|
RELEASE_ROOT = "src"
|
||||||
TAG_NAME = """${TAG_NAME ?: ""}"""
|
TAG_NAME = """${TAG_NAME ?: ""}"""
|
||||||
ARTIFACTS = "${WORKSPACE}/.artifacts"
|
ARTIFACTS = "${WORKSPACE}/.artifacts"
|
||||||
@ -81,7 +78,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sshagent(credentials: ['docs_pk']) {
|
sshagent(credentials: ['pk_webroot']) {
|
||||||
sh 'echo ${TAG_NAME:-${GIT_BRANCH#*/}}'
|
sh 'echo ${TAG_NAME:-${GIT_BRANCH#*/}}'
|
||||||
sh 'echo ${DEPLOY_HOST}:${DEPLOY_DOC_PATH}${TAG_NAME:-${GIT_BRANCH#*/}}/'
|
sh 'echo ${DEPLOY_HOST}:${DEPLOY_DOC_PATH}${TAG_NAME:-${GIT_BRANCH#*/}}/'
|
||||||
sh 'ssh -o StrictHostKeyChecking=no -o BatchMode=yes ${DEPLOY_HOST} mkdir -p ${DEPLOY_DOC_PATH}${TAG_NAME:-${GIT_BRANCH#*/}}/'
|
sh 'ssh -o StrictHostKeyChecking=no -o BatchMode=yes ${DEPLOY_HOST} mkdir -p ${DEPLOY_DOC_PATH}${TAG_NAME:-${GIT_BRANCH#*/}}/'
|
||||||
@ -107,7 +104,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sshagent(credentials: ['docs_pk']) {
|
sshagent(credentials: ['pk_webroot']) {
|
||||||
sh 'echo ${TAG_NAME:-${GIT_BRANCH#*/}}'
|
sh 'echo ${TAG_NAME:-${GIT_BRANCH#*/}}'
|
||||||
sh 'echo ${DEPLOY_HOST}:${DEPLOY_REL_PATH}${TAG_NAME:-${GIT_BRANCH#*/}}/'
|
sh 'echo ${DEPLOY_HOST}:${DEPLOY_REL_PATH}${TAG_NAME:-${GIT_BRANCH#*/}}/'
|
||||||
sh 'ssh -o StrictHostKeyChecking=no -o BatchMode=yes ${DEPLOY_HOST} mkdir -p ${DEPLOY_REL_PATH}${TAG_NAME:-${GIT_BRANCH#*/}}/'
|
sh 'ssh -o StrictHostKeyChecking=no -o BatchMode=yes ${DEPLOY_HOST} mkdir -p ${DEPLOY_REL_PATH}${TAG_NAME:-${GIT_BRANCH#*/}}/'
|
||||||
|
Loading…
Reference in New Issue
Block a user