revert git pull from jenkins

This commit is contained in:
Maharshi Patel 2021-01-11 08:06:54 -08:00
parent 6203805f62
commit c08891346b

25
Jenkinsfile vendored
View file

@ -24,23 +24,16 @@ pipeline {
// START : Stages // START : Stages
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
stages { stages {
stage ('clone git repository') {
steps{
script {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/mnpatel0611/spring-petclinic']]])
}
}
}
stage('build started') { stage('build started') {
steps { steps {
echo "//////////////// build <<< ${env.BUILD_ID} >>> started ////////////////////" echo "build <<< ${env.BUILD_ID} >>> starting..."
} }
} }
stage('build maven package') { // stage('build maven package') {
steps { // steps {
sh "java -version" // sh "java -version"
sh "mvn -version" // sh "mvn -version"
withMaven { // withMaven {
// sh "mvn clean validate compile test package" // sh "mvn clean validate compile test package"
// sh "ls -la target" // sh "ls -la target"
// sh 'curl -X PUT -u jfroguser:AdminPassword1 ./target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar "https://petclinic.jfrog.io/artifactory/spring-petclinic/spring-petclinic-2.4.0.BUILD-${BUILD_NUMBER}.jar"' // sh 'curl -X PUT -u jfroguser:AdminPassword1 ./target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar "https://petclinic.jfrog.io/artifactory/spring-petclinic/spring-petclinic-2.4.0.BUILD-${BUILD_NUMBER}.jar"'
@ -50,9 +43,9 @@ pipeline {
// releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot") // releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
// rtMavenResolver (id: "MAVEN_RESOLVER",serverId: "jenkins-artifactory-server", // rtMavenResolver (id: "MAVEN_RESOLVER",serverId: "jenkins-artifactory-server",
// releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot") // releaseRepo: "spring-petclinic",snapshotRepo: "spring-petclinic-snapshot")
} // }
} // }
} // }
stage('build docker image') { stage('build docker image') {
steps { steps {
script { script {