Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
node-server: Added Deployment stage.
Browse files Browse the repository at this point in the history
  • Loading branch information
sflanker committed Jul 10, 2024
1 parent 072257d commit d12682c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion node-server/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ pipeline {
}
}

environment {
IMAGE_NAME = 'artifactory.cloud.cms.gov/batcave-docker/ado-repositories/nightwing/knight-light/jenkins-knight-light/node-server'
IMAGE_TAG = "${GIT_COMMIT[0..7]}"
}

stages {
stage('Build') {
steps {
Expand Down Expand Up @@ -69,12 +74,22 @@ pipeline {
stage('Delivery') {
steps {
build(job: 'Node Server Delivery', wait: true, propagate: true, parameters: [
string(name: 'tag', value: "${GIT_COMMIT[0..7]}"),
string(name: 'image', value: "${env.IMAGE_NAME}"),
string(name: 'tag', value: "${env.IMAGE_TAG}"),
string(name: 'git_repository', value: "${scm.userRemoteConfigs[0].url}"),
string(name: 'git_credentials', value: "${scm.userRemoteConfigs[0].credentialsId}"),
string(name: 'git_commit', value: "${GIT_COMMIT}")
])
}
}

stage('Deployment') {
steps {
build(job: 'Node Server Deployment', wait: true, propagate: true, parameters: [
string(name: 'image', value: "${env.IMAGE_NAME}"),
string(name: 'tag', value: "${env.IMAGE_TAG}")
])
}
}
}
}

0 comments on commit d12682c

Please sign in to comment.