-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
47 lines (46 loc) · 990 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env groovy
pipeline {
agent {
kubernetes {
yaml '''
kind: Pod
apiVersion: v1
metadata:
name: jslv-dagger
spec:
containers:
- name: jslv-dagger
image: adlnc/dagger-jenkins-agent:test
imagePullPolicy: Always
command:
- sleep
args:
- 99d
volumeMounts:
- name: docker-registry-config
mountPath: /dagger/.docker
volumes:
- name: docker-registry-config
configMap:
name: docker-registry-config
'''
}
}
// node("jslv-dagger") {
environment {
DH_CREDS = credentials('3f3f1cdb-c931-4993-a2df-59bdf30c48b7')
}
stages {
stage('verify installation') {
steps {
container('jslv-dagger'){
sh '''
dagger version
docker version
'''
}
}
}
}
// }
}