chore: changed base image for Jenkinsfile
Gitea/docker-base-images/jdk14-alpine/pipeline/head This commit looks good Details

amorozov 2023-04-04 20:18:20 +03:00
parent 049a3e46ea
commit 85ba4576c0
1 changed files with 1 additions and 11 deletions

12
Jenkinsfile vendored
View File

@ -9,7 +9,7 @@ def resolveImageName(env) {
pipeline { pipeline {
agent { agent {
docker { docker {
image 'alpine:3.17.3' image 'git.tswf.io/docker-base-images/alpine-base:1.0.0-3.17.3'
// Mount docker socket for docker-in-docker // Mount docker socket for docker-in-docker
args '-v /var/run/docker.sock:/var/run/docker.sock' args '-v /var/run/docker.sock:/var/run/docker.sock'
} }
@ -17,16 +17,6 @@ pipeline {
stages { stages {
stage('prepare') { stage('prepare') {
steps { steps {
sh """
apk update && \
apk add --no-cache git curl
"""
sh """curl -fsSLO https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.tgz \
&& tar xzvf docker-17.04.0-ce.tgz \
&& mv docker/docker /usr/local/bin \
&& rm -r docker docker-17.04.0-ce.tgz"""
script { script {
env.IMAGE_BASE_NAME = "jdk14-alpine" env.IMAGE_BASE_NAME = "jdk14-alpine"
env.RELEASE_TAG_PREFIX = "release-" env.RELEASE_TAG_PREFIX = "release-"