environment test

This commit is contained in:
crusader 2023-02-01 09:25:05 +00:00
parent 7bcdfceb32
commit 31bfe3409c

15
Jenkinsfile vendored
View File

@ -1,16 +1,19 @@
podTemplate(containers: [
containerTemplate(
name: 'jnlp',
image: 'jenkins/inbound-agent:latest'
name: 'gradle',
image: 'gradle:7.6.0-jdk11',
command: 'sleep',
args: '30d'
)
]) {
node(POD_LABEL) {
stage('Get a project') {
container('jnlp') {
stage('Shell Execution') {
stage('Get a Gradle project') {
git 'https://github.com/spring-projects/spring-petclinic.git'
container('gradle') {
stage('Build a Gradle project') {
sh '''
echo "Hello! I am executing shell"
echo "gradle build"
'''
}
}