File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ pipeline {
88 checkout scm
99 }
1010 }
11+ stage(' Prepare environment' ) {
12+ steps {
13+ sh " rm -rf /home/jenkins/workspace/" + JOB_NAME + " /build"
14+ sh " mkdir -p /home/jenkins/workspace/" + JOB_NAME + " /build"
15+ sh " chmod 777 /home/jenkins/workspace/" + JOB_NAME + " /build"
16+ sh " cd /home/jenkins/workspace/" + JOB_NAME + " && wget -N https://download.java.net/java/GA/jdk9/9.0.4/binaries/openjdk-9.0.4_linux-x64_bin.tar.gz"
17+ sh " cp /home/jenkins/workspace/" + JOB_NAME + " /openjdk-9.0.4_linux-x64_bin.tar.gz /home/jenkins/workspace/" + JOB_NAME + " /build/"
18+ }
19+ }
1120 stage(' Build cross-compilation OS' ) {
1221 steps {
1322 script {
@@ -25,9 +34,6 @@ pipeline {
2534 }
2635 stage(" Build" ) {
2736 steps {
28- sh " rm -rf /home/jenkins/workspace/" + JOB_NAME + " /build"
29- sh " mkdir -p /home/jenkins/workspace/" + JOB_NAME + " /build"
30- sh " chmod 777 /home/jenkins/workspace/" + JOB_NAME + " /build"
3137 sh " docker run --rm -v /home/jenkins/workspace/" + JOB_NAME + " /build:/build -e JDKVER='" + JDKVER_VALUE + " ' -e JDKVM='" + JDKVM_VALUE + " ' -e JDKPLATFORM='" + JDKPLATFORM_VALUE + " ' -e AUTOBUILD='1' ev3dev-lang-java:jdk-build"
3238 archiveArtifacts artifacts : ' build/jri-' + JDKPLATFORM_VALUE + ' .tar.gz' , fingerprint : true
3339 archiveArtifacts artifacts : ' build/jdk-' + JDKPLATFORM_VALUE + ' .tar.gz' , fingerprint : true
You can’t perform that action at this time.
0 commit comments