2022-10-19 14:43:50 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Build and Tag LOCAL Foundation CICD container image') {
|
2022-10-19 18:26:24 +00:00
|
|
|
environment {
|
|
|
|
HTTP_PROXY = "http://proxy.lan.vdb.to:8080/"
|
|
|
|
HTTPS_PROXY = "http://proxy.lan.vdb.to:8080/"
|
2022-10-19 18:49:34 +00:00
|
|
|
http_proxy = "http://proxy.lan.vdb.to:8080/"
|
|
|
|
https_proxy = "http://proxy.lan.vdb.to:8080/"
|
2022-10-19 18:26:24 +00:00
|
|
|
}
|
2022-10-19 14:43:50 +00:00
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-19 21:44:33 +00:00
|
|
|
script{
|
|
|
|
//including withRegistry block for now... currently not authenticating or pushing to git.vdb.to
|
|
|
|
docker.withRegistry('https://git.vdb.to'){
|
|
|
|
echo 'Building foundation base node 16 image...'
|
|
|
|
def foundation_image = docker.build("cerc-io/foundation_node16:jenkinscicd", "--build-arg VARIANT=16 node_base/")
|
|
|
|
echo 'built foundation image'
|
|
|
|
}
|
|
|
|
}
|
2022-10-19 14:43:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|