foundation/Jenkinsfile
2022-10-19 14:49:34 -04:00

34 lines
1.3 KiB
Groovy

pipeline {
agent any
stages {
stage('Build and Tag LOCAL Foundation CICD container image') {
environment {
HTTP_PROXY = "http://proxy.lan.vdb.to:8080/"
HTTPS_PROXY = "http://proxy.lan.vdb.to:8080/"
http_proxy = "http://proxy.lan.vdb.to:8080/"
https_proxy = "http://proxy.lan.vdb.to:8080/"
}
steps {
script{
//including withRegistry block for now... currently not authenticating or pushing to git.vdb.to
docker.withRegistry('https://git.vdb.to'){
echo 'Building foundation image...'
def foundation_image = docker.build("cerc-io/foundation:jenkinscicd")
echo 'built foundation image'
}
}
script{
//including withRegistry block for now... currently not authenticating or pushing to git.vdb.to
docker.withRegistry('https://git.vdb.to'){
echo 'Building foundation image...'
def foundation_image = docker.build("cerc-io/foundation_alpine:jenkinscicd", "alpine/")
echo 'built foundation image'
}
}
}
}
}
}