environment test
This commit is contained in:
parent
7bcdfceb32
commit
31bfe3409c
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
|
@ -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"
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user