mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
revert git pull from jenkins
This commit is contained in:
parent
6203805f62
commit
c08891346b
1 changed files with 9 additions and 16 deletions
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue