diff --git a/Jenkinsfile b/Jenkinsfile index 0a8c0968..e34c1e47 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { tools { maven 'maven3' - jdk 'jdk17' + } stages { diff --git a/Jenkinsfile01 b/Jenkinsfile01 new file mode 100644 index 00000000..083e0e2d --- /dev/null +++ b/Jenkinsfile01 @@ -0,0 +1,25 @@ +pipeline { + agent any + + tools { + maven 'maven3' + } + + stages { + stage('Compile') { + steps { + sh "mvn compile" + } + } + stage('test') { + steps { + sh "mvn test" + } + } + stage('package') { + steps { + sh "mvn package" + } + } + } +} diff --git a/test.txt b/test.txt index 9fc0659b..11883570 100644 --- a/test.txt +++ b/test.txt @@ -1 +1,3 @@ -Aditya +Hia how are you dong + +# print ("hello world')