chore: updated Jenkinsfile
Gitea/docker-base-images/jdk14-alpine/pipeline/head There was a failure building this commit Details

fix/fix-agent-installation
amorozov 2023-03-30 19:14:50 +03:00
parent 5e914f13c9
commit 5e9c7e0cb7
1 changed files with 3 additions and 5 deletions

8
Jenkinsfile vendored
View File

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