environment test
This commit is contained in:
parent
a43fcf58e5
commit
2fed4f26ba
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
|
@ -20,32 +20,3 @@ 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