supports jenkinsfile with dockerfile

This commit is contained in:
sukrucakmak 2023-03-20 00:28:04 +03:00
parent c5ead47202
commit 33a55bf51b

16
Jenkinsfile vendored
View file

@ -1,14 +1,14 @@
pipeline { pipeline {
agent none agent { dockerfile true }
stages { stages {
stage('Maven Install') { stage('Build') {
agent {
docker {
image 'maven:3.5.0'
}
}
steps { steps {
sh 'mvn clean install' sh 'mvn clean install'
}
}
stage('Test') {
steps {
sh 'java --version'
} }
} }
} }