mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
change permission
This commit is contained in:
parent
521863ba42
commit
e794769546
1 changed files with 9 additions and 0 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -33,8 +33,17 @@ pipeline {
|
||||||
sh "pwd"
|
sh "pwd"
|
||||||
sh "mvn validate compile test package"
|
sh "mvn validate compile test package"
|
||||||
sh "ls -la target"
|
sh "ls -la target"
|
||||||
|
sh "chmod 400 ./target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.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"'
|
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"'
|
||||||
}
|
}
|
||||||
|
rtServer (
|
||||||
|
id: 'Artifactory-1',
|
||||||
|
url: 'https://petclinic.jfrog.io/artifactory',
|
||||||
|
username: 'jfroguser',
|
||||||
|
password: 'AdminPassword1',
|
||||||
|
bypassProxy: true,
|
||||||
|
timeout: 300
|
||||||
|
)
|
||||||
}
|
}
|
||||||
stage('build docker image') {
|
stage('build docker image') {
|
||||||
steps {
|
steps {
|
||||||
|
|
Loading…
Reference in a new issue