-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fixed Jenkinsfile for upload-mirror
- Loading branch information
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,36 @@ | ||
pipeline { | ||
agent any | ||
tools { | ||
maven 'maven-3.9.6' | ||
jdk 'ZULU8' | ||
} | ||
stages { | ||
stage('Build with mirror-database profile') { | ||
steps { | ||
sh 'export MAVEN_HOME=/opt/maven' | ||
sh 'export PATH=$PATH:$MAVEN_HOME/bin' | ||
sh 'JAVA_HOME=/usr/lib/jvm/zulu-8-amd64 mvn -B clean install -Pmirror-database' | ||
withMaven(maven: 'maven-3.9.6') { | ||
sh 'mvn -B clean install -Pmirror-database' | ||
} | ||
} | ||
} | ||
|
||
stage('Push mirror-database artifacts to server') { | ||
steps { | ||
sh 'find . -name "*.jar" -exec curl -T {} http://ae-scanner/upload/mirror/{} \;' | ||
sh "find . -name '*.jar' -exec curl -T {} http://ae-scanner/upload/mirror/{} \\;" | ||
} | ||
} | ||
|
||
stage('Build with index-database profile') { | ||
steps { | ||
sh 'export MAVEN_HOME=/opt/maven' | ||
sh 'export PATH=$PATH:$MAVEN_HOME/bin' | ||
sh 'JAVA_HOME=/usr/lib/jvm/zulu-8-amd64 mvn -B clean install -Pindex-database' | ||
withMaven(maven: 'maven-3.9.6') { | ||
sh 'mvn -B clean install -Pindex-database' | ||
} | ||
} | ||
} | ||
|
||
stage('Push index-database artifacts to server') { | ||
steps { | ||
sh 'find . -name "*.jar" -exec curl -T {} http://ae-scanner/upload/index/{} \;' | ||
sh "find . -name '*.jar' -exec curl -T {} http://ae-scanner/upload/index/{} \\;" | ||
} | ||
} | ||
} | ||
} | ||
} |