chore: updated Jenkinsfile
Some checks failed
Gitea/docker-base-images/jdk14-alpine/pipeline/head There was a failure building this commit
Some checks failed
Gitea/docker-base-images/jdk14-alpine/pipeline/head There was a failure building this commit
This commit is contained in:
parent
5e914f13c9
commit
5e9c7e0cb7
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -1,7 +1,3 @@
|
||||
def IMAGE_BASE_NAME
|
||||
def RELEASE_TAG_PREFIX
|
||||
def REGISTRY_HOST
|
||||
|
||||
def resolveImageTag(env) {
|
||||
return env.TAG_NAME?.replace(RELEASE_TAG_PREFIX, '') ?: 'latest'
|
||||
}
|
||||
@ -10,6 +6,9 @@ def resolveImageName(env) {
|
||||
return "${REGISTRY_HOST}/docker-base-images/${IMAGE_BASE_NAME}:${resolveImageTag(env)}"
|
||||
}
|
||||
|
||||
def IMAGE_BASE_NAME
|
||||
def RELEASE_TAG_PREFIX
|
||||
def REGISTRY_HOST
|
||||
pipeline {
|
||||
agent {
|
||||
docker {
|
||||
@ -22,7 +21,6 @@ pipeline {
|
||||
stage('prepare') {
|
||||
steps {
|
||||
sh "apk update && apk add --no-cache git"
|
||||
// Try to get tag name from git repo if it empty. By default this env fills only at tag builds in Jenkins
|
||||
script {
|
||||
IMAGE_BASE_NAME = "jdk14-alpine"
|
||||
RELEASE_TAG_PREFIX = "release-"
|
||||
|
Loading…
Reference in New Issue
Block a user