a
test/pipeline/head There was a failure building this commit
Details
test/pipeline/head There was a failure building this commit
Details
parent
060fab23e7
commit
747d577c13
@ -1,40 +0,0 @@
|
|||||||
pipeline {
|
|
||||||
agent {
|
|
||||||
kubernetes {
|
|
||||||
yaml """\
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Pod
|
|
||||||
metadata:
|
|
||||||
name: 'jenkins-slave'
|
|
||||||
namespace: 'your-namespace'
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: docker
|
|
||||||
image: swr.eu-de.otc.t-systems.com/base-image/docker:dind
|
|
||||||
tty: true
|
|
||||||
imagePullPolicy: Always
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: default-secret
|
|
||||||
env:
|
|
||||||
- name: PASS
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: docker-reg
|
|
||||||
key: docker-reg
|
|
||||||
""".stripIndent()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stages {
|
|
||||||
stage('Build Docker Image') {
|
|
||||||
container('docker') {
|
|
||||||
sh """
|
|
||||||
image="swr.eu-de.otc.t-systems.com/omnia-test/test-build:latest"
|
|
||||||
docker login ${PASS} swr.eu-de.otc.t-systems.com
|
|
||||||
docker build -t ${image} .
|
|
||||||
docker push ${image}
|
|
||||||
"""
|
|
||||||
milestone(1)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue