Merge pull request #2 from RightBrain-Networks/feature/jenkins
Add push version
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -1,4 +1,4 @@
|
|||||||
library('pipeline-library@feature/add-with-ecr')
|
library('pipeline-library')
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
options { timestamps() }
|
options { timestamps() }
|
||||||
@ -21,7 +21,9 @@ pipeline {
|
|||||||
{
|
{
|
||||||
steps
|
steps
|
||||||
{
|
{
|
||||||
|
withEcr {
|
||||||
sh "docker pull ${DOCKER_REGISTRY}/auto-semver:${SELF_SEMVER_TAG}"
|
sh "docker pull ${DOCKER_REGISTRY}/auto-semver:${SELF_SEMVER_TAG}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Runs versioning in docker container
|
//Runs versioning in docker container
|
||||||
@ -90,6 +92,12 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Push Version and Tag') {
|
||||||
|
steps {
|
||||||
|
echo "The current branch is ${env.BRANCH_NAME}."
|
||||||
|
gitPush(env.GITHUB_KEY, env.BRANCH_NAME, true)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
|
Reference in New Issue
Block a user