a
test/pipeline/head Something is wrong with the build of this commit Details

main
onikolskyy 1 year ago
parent 306a9ffde5
commit a0919fb8dc

52
Jenkinsfile vendored

@ -1,48 +1,11 @@
pipeline { pipeline {
agent { agent {
kubernetes { label 'dind-agent'
yaml """\ }
apiVersion: v1
kind: Pod
metadata:
name: 'jenkins-slave'
namespace: 'default'
spec: stages {
containers: stage("build image") {
- name: dind steps {
image: "swr.eu-de.otc.t-systems.com/base-image/jenkins-dind"
imagePullPolicy: "IfNotPresent"
tty: true
command:
- "cat"
volumeMounts:
- mountPath: "/home/jenkins/agent"
name: "workspace-volume"
readOnly: false
env:
- name: PASS
valueFrom:
secretKeyRef:
name: docker-reg
key: pass
securityContext:
privileged: true
imagePullSecrets:
- name: default-secret
serviceAccountName: "jenkins-admin"
volumes:
- emptyDir:
medium: ""
name: "workspace-volume"
""".stripIndent()
}
}
stages {
stage('Build Docker Image') {
steps {
container('dind') {
script { script {
def image = "swr.eu-de.otc.t-systems.com/omnia-test/test-build:${env.BUILD_NUMBER}" def image = "swr.eu-de.otc.t-systems.com/omnia-test/test-build:${env.BUILD_NUMBER}"
echo "FOO is ${env.BUILD_NUMBER}" echo "FOO is ${env.BUILD_NUMBER}"
@ -56,6 +19,5 @@ pipeline {
milestone(1) milestone(1)
} }
} }
} }
}
} }
Loading…
Cancel
Save