You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
856 B
Groovy
32 lines
856 B
Groovy
version="1.0.0"
|
|
repository="swr.eu-de.otc.t-systems.com"
|
|
tag="latest"
|
|
image="swr.eu-de.otc.t-systems.com/omnia-test/${repository}:${version}.${env.BUILD_NUMBER}"
|
|
namespace="demo"
|
|
|
|
podTemplate(label: 'pod', cloud: 'k8s-config', serviceAccount: 'jenkins-admin',
|
|
imagePullSecrets: [
|
|
'default-secret'
|
|
],
|
|
containers: [
|
|
containerTemplate(
|
|
name: 'docker', image: 'wr.eu-de.otc.t-systems.com/base-image/docker:dind', ttyEnabled: true, command: 'cat', privileged: true,
|
|
envVars: [
|
|
secretEnvVar(key: "PASS", secretName: "docker-reg", secretKey: "docker-reg")
|
|
]
|
|
),
|
|
],
|
|
) {
|
|
node('pod') {
|
|
stage('Build Docker Image') {
|
|
container('docker') {
|
|
sh """
|
|
...
|
|
"""
|
|
milestone(1)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|