Skip to content

Commit

Permalink
Correct Jenkinsfile.sidecar
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyingjie committed Mar 16, 2021
1 parent 6a99588 commit 153e200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/Jenkinsfile.sidecar
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pipeline {
PROJECT_NAME = "${params.PROJECT_NAME}"
PROJECT_DIR = "${HOME}/backdemo/${PROJECT_NAME}-${BUILD_TIMESTAMP}"
GIT_SSH_COMMAND = "ssh -i ${HOME}/repository-keys/${PROJECT_NAME}-key.rsa"
IMAGE_NAME = "${params.ORGNIZATION}/${IMAGE_NAME}:${IMAGE_TAG}"
IMAGE_NAME = "${IMAGE_NAME}:${IMAGE_TAG}"
SUDO_CMD = "${params.SUDO == 'true' ? 'sudo' : ' '}"
}

Expand Down Expand Up @@ -63,7 +63,7 @@ pipeline {
stage('镜像构建') {
steps {
script {
sh """${SUDO_CMD} ${PROJECT_DIR}/${params.dockerFile}/release/build-server-image.sh --network host"""
sh """${SUDO_CMD} ${PROJECT_DIR}/release/build-server-image.sh"""
}
}
post {
Expand Down

0 comments on commit 153e200

Please sign in to comment.