chore: updated Jenkinsfile
Gitea/docker-base-images/jdk14-alpine/pipeline/head There was a failure building this commit
Details
Gitea/docker-base-images/jdk14-alpine/pipeline/head There was a failure building this commit
Details
parent
5e914f13c9
commit
5e9c7e0cb7
|
@ -1,7 +1,3 @@
|
||||||
def IMAGE_BASE_NAME
|
|
||||||
def RELEASE_TAG_PREFIX
|
|
||||||
def REGISTRY_HOST
|
|
||||||
|
|
||||||
def resolveImageTag(env) {
|
def resolveImageTag(env) {
|
||||||
return env.TAG_NAME?.replace(RELEASE_TAG_PREFIX, '') ?: 'latest'
|
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)}"
|
return "${REGISTRY_HOST}/docker-base-images/${IMAGE_BASE_NAME}:${resolveImageTag(env)}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def IMAGE_BASE_NAME
|
||||||
|
def RELEASE_TAG_PREFIX
|
||||||
|
def REGISTRY_HOST
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
|
@ -22,7 +21,6 @@ pipeline {
|
||||||
stage('prepare') {
|
stage('prepare') {
|
||||||
steps {
|
steps {
|
||||||
sh "apk update && apk add --no-cache git"
|
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 {
|
script {
|
||||||
IMAGE_BASE_NAME = "jdk14-alpine"
|
IMAGE_BASE_NAME = "jdk14-alpine"
|
||||||
RELEASE_TAG_PREFIX = "release-"
|
RELEASE_TAG_PREFIX = "release-"
|
||||||
|
|
Loading…
Reference in New Issue