Remove Jenkinsfile

This commit is contained in:
Florian Hoss 2023-02-04 21:02:41 +01:00
parent db7d169e18
commit 0010a7eaa0

32
Jenkinsfile vendored
View file

@ -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}")
}
}
}
}
}
}
}