Remove Jenkinsfile
This commit is contained in:
parent
db7d169e18
commit
0010a7eaa0
1 changed files with 0 additions and 32 deletions
32
Jenkinsfile
vendored
32
Jenkinsfile
vendored
|
@ -1,32 +0,0 @@
|
|||
pipeline {
|
||||
environment {
|
||||
VERSION = "v2.0.4"
|
||||
PROJECT_NAME = JOB_NAME.split('/')
|
||||
IMAGE_NAME = "unjxde/${PROJECT_NAME[0]}"
|
||||
IMAGE = ''
|
||||
}
|
||||
agent any
|
||||
stages {
|
||||
stage('Building') {
|
||||
steps {
|
||||
script {
|
||||
IMAGE = docker.build IMAGE_NAME
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploying') {
|
||||
steps {
|
||||
script {
|
||||
docker.withRegistry( 'https://registry.hub.docker.com', 'dockerHub' ) {
|
||||
if (BRANCH_NAME == "main") {
|
||||
IMAGE.push("${VERSION}")
|
||||
IMAGE.push("latest")
|
||||
} else {
|
||||
IMAGE.push("${BRANCH_NAME}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue