environment test

This commit is contained in:
crusader 2023-02-01 09:48:49 +00:00
parent 729e18ee1d
commit a43fcf58e5

29
Jenkinsfile vendored
View File

@ -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'
}
}
}
}
}