-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathJenkinsfile
56 lines (54 loc) · 1.52 KB
/
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
48
49
50
51
52
53
54
55
56
def collection_path = 'ansible_collections/rudder/rudder'
// uid of the jenkins user of the docker runners
def user_id = "1007"
pipeline {
agent none
stages {
stage ('typos') {
agent {
dockerfile {
filename 'ci/typos.Dockerfile'
additionalBuildArgs '--build-arg VERSION=1.0'
}
}
steps {
sh script: './qa-test --typos', label: 'check collection typos'
}
}
stage ('ansible sanity tests') {
agent {
dockerfile {
filename 'ci/ansible-test.Dockerfile'
additionalBuildArgs '--build-arg USER_ID='+user_id
}
}
steps {
sh "mkdir -p ${collection_path}"
sh "mv * ${collection_path} || true"
dir(collection_path) {
sh script: 'ansible-test sanity', label: 'ansible sanity checks'
}
}
}
// stage ('ansible unit tests') {
// agent {
// dockerfile {
// filename 'ci/pytest.Dockerfile'
// additionalBuildArgs '--build-arg USER_ID='+user_id
// }
// }
// steps {
// sh script: './qa-test --unit-tests', label: 'ansible unit checks'
// }
// }
//stage ('role rudder_relay') {
// agent {
// image 'quay.io/ansible/toolset'
// args '-v /var/run/docker.sock:/var/run/docker.sock'
// }
// steps {
// sh './qa-test --rudder_relay'
// }
//}
}
}