blob: 45f32db713c9e355da3c9284b5afaadc6c63dbbc (
plain)
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
|
pipeline {
agent {
kubernetes {
yamlFile 'centos7-rpmbuild.yaml'
defaultContainer 'centos7-rpmbuild'
slaveConnectTimeout '3600'
nodeSelector 'kubernetes.io/os=linux,kubernetes.io/arch=amd64'
}
}
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
disableConcurrentBuilds()
}
triggers {
pollSCM('H * * * *')
}
stages {
stage('Run shell') {
steps {
sh '''
uname -a
printenv | sort
cat /etc/os-release
'''
}
}
}
}
|