forked from jenkins-infra/jenkins-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
54 lines (49 loc) · 1.81 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
#!/usr/bin/env groovy
pipeline {
agent none
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
timeout(time: 1, unit: 'HOURS')
timestamps()
}
stages {
stage('Verify DNS') {
agent { docker 'kohsuke/named-checkzone' }
steps {
parallel(
'jenkins.io' : {
sh '/usr/sbin/named-checkzone jenkins.io dist/profile/files/bind/jenkins.io.zone'
},
'jenkins-ci.org' : {
sh '/usr/sbin/named-checkzone jenkins-ci.org dist/profile/files/bind/jenkins-ci.org.zone'
},
)
}
}
stage('Verify Puppet') {
agent { docker 'ruby:2.4-stretch' }
/* These environment variables make it feasible for Git to clone properly while
* inside the wacky confines of a Docker container
*/
environment {
GIT_COMMITTER_EMAIL = '[email protected]'
GIT_COMMITTER_NAME = 'Hates'
GIT_AUTHOR_NAME = 'Cake'
GIT_AUTHOR_EMAIL = '[email protected]'
}
steps {
/* Some gems seem to want to stuff things into hidden
* directories under $HOME, e.g.
* Could not initialize global default settings:
* Permission denied - /.puppetlabs
*/
sh 'HOME=$PWD bundle install --without development plugins --path vendor/gems'
sh 'HOME=$PWD bundle exec rake resolve'
sh 'bundle exec rake lint'
sh 'bundle exec parallel_rspec spec/classes'
sh 'bundle exec parallel_rspec spec/defines'
}
}
}
}
// vim: ft=groovy