environment test
This commit is contained in:
parent
729e18ee1d
commit
a43fcf58e5
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
|
@ -19,4 +19,33 @@ podTemplate(containers: [
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
pipeline {
|
||||
agent {
|
||||
kubernetes {
|
||||
yaml '''
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
labels:
|
||||
some-label: some-label-value
|
||||
spec:
|
||||
containers:
|
||||
- name: gradle
|
||||
image: gradle:7.6.0-jdk11
|
||||
tty: true
|
||||
'''
|
||||
retries 2
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage('Run gradle') {
|
||||
steps {
|
||||
container('gradle') {
|
||||
sh './gradlew clean build'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user