|
| 1 | +/* |
| 2 | + * Copyright (c) 2024 unknowIfGuestInDream. |
| 3 | + * All rights reserved. |
| 4 | + * |
| 5 | + * Redistribution and use in source and binary forms, with or without |
| 6 | + * modification, are permitted provided that the following conditions are met: |
| 7 | + * * Redistributions of source code must retain the above copyright |
| 8 | + * notice, this list of conditions and the following disclaimer. |
| 9 | + * * Redistributions in binary form must reproduce the above copyright |
| 10 | + * notice, this list of conditions and the following disclaimer in the |
| 11 | + * documentation and/or other materials provided with the distribution. |
| 12 | + * * Neither the name of unknowIfGuestInDream, any associated website, nor the |
| 13 | + * names of its contributors may be used to endorse or promote products |
| 14 | + * derived from this software without specific prior written permission. |
| 15 | + * |
| 16 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 17 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 18 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 19 | + * DISCLAIMED. IN NO EVENT SHALL UNKNOWIFGUESTINDREAM BE LIABLE FOR ANY |
| 20 | + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 21 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 22 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 23 | + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 25 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 | + */ |
| 27 | + |
1 | 28 | pipeline {
|
2 | 29 | agent any
|
3 | 30 | options {
|
@@ -59,14 +86,14 @@ pipeline {
|
59 | 86 | stage('Prepare Windows Build') {
|
60 | 87 | steps {
|
61 | 88 | timeout(time: 10, unit: 'MINUTES') {
|
62 |
| - sh "$M2_HOME/bin/mvn -f pom.xml -s $M2_HOME/conf/settings.xml '-Djavafx.platform=win' '-Dmaven.test.skip=true' '-Dmaven.javadoc.skip=true' clean -T 1C install" |
| 89 | + sh "$M2_HOME/bin/mvn -f pom.xml -s $M2_HOME/conf/settings.xml '-Djavafx.platform=win' '-Dmaven.test.skip=true' '-Dmaven.javadoc.skip=true' -DworkEnv=ci clean -T 1C install" |
63 | 90 | }
|
64 | 91 | }
|
65 | 92 | }
|
66 | 93 |
|
67 | 94 | stage('Build smc-windows') {
|
68 | 95 | steps {
|
69 |
| - sh "$M2_HOME/bin/mvn -f smc/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=win -Dmaven.test.skip=true -Pjavadoc-with-links package" |
| 96 | + sh "$M2_HOME/bin/mvn -f smc/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=win -Dmaven.test.skip=true -DworkEnv=ci -Pjavadoc-with-links package" |
70 | 97 | sh '''cp smc/target/javafxTool-smc.jar javafxTool-smc.jar
|
71 | 98 | cp -r smc/target/lib lib
|
72 | 99 | cp -r smc/target/reports/apidocs apidocs
|
@@ -94,7 +121,7 @@ rm -r license'''
|
94 | 121 |
|
95 | 122 | stage('Build qe-windows') {
|
96 | 123 | steps {
|
97 |
| - sh "$M2_HOME/bin/mvn -f qe/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=win -Dmaven.test.skip=true -Pjavadoc-with-links package" |
| 124 | + sh "$M2_HOME/bin/mvn -f qe/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=win -Dmaven.test.skip=true -DworkEnv=ci -Pjavadoc-with-links package" |
98 | 125 | sh '''cp qe/target/javafxTool-qe.jar javafxTool-qe.jar
|
99 | 126 | cp -r qe/target/lib lib
|
100 | 127 | cp -r qe/target/reports/apidocs apidocs
|
@@ -122,7 +149,7 @@ rm -r license'''
|
122 | 149 |
|
123 | 150 | stage('Build cg-windows') {
|
124 | 151 | steps {
|
125 |
| - sh "$M2_HOME/bin/mvn -f cg/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=win -Dmaven.test.skip=true -Pjavadoc-with-links package" |
| 152 | + sh "$M2_HOME/bin/mvn -f cg/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=win -Dmaven.test.skip=true -DworkEnv=ci -Pjavadoc-with-links package" |
126 | 153 | sh '''cp cg/target/javafxTool-cg.jar javafxTool-cg.jar
|
127 | 154 | cp -r cg/target/lib lib
|
128 | 155 | cp -r cg/target/reports/apidocs apidocs
|
@@ -151,14 +178,14 @@ rm -r license'''
|
151 | 178 | stage('Prepare Mac Build') {
|
152 | 179 | steps {
|
153 | 180 | timeout(time: 10, unit: 'MINUTES') {
|
154 |
| - sh "$M2_HOME/bin/mvn -f pom.xml -s $M2_HOME/conf/settings.xml -Djavafx.platform=mac -Dmaven.test.skip=true -Dmaven.javadoc.skip=true clean -T 1C install" |
| 181 | + sh "$M2_HOME/bin/mvn -f pom.xml -s $M2_HOME/conf/settings.xml -Djavafx.platform=mac -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -DworkEnv=ci clean -T 1C install" |
155 | 182 | }
|
156 | 183 | }
|
157 | 184 | }
|
158 | 185 |
|
159 | 186 | stage('Build smc-mac') {
|
160 | 187 | steps {
|
161 |
| - sh "$M2_HOME/bin/mvn -f smc/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=mac -Dmaven.test.skip=true -Pjavadoc-with-links package" |
| 188 | + sh "$M2_HOME/bin/mvn -f smc/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=mac -Dmaven.test.skip=true -DworkEnv=ci -Pjavadoc-with-links package" |
162 | 189 | sh '''cp smc/target/javafxTool-smc.jar javafxTool-smc.jar
|
163 | 190 | cp -r smc/target/lib lib
|
164 | 191 | cp -r smc/target/reports/apidocs apidocs
|
@@ -186,7 +213,7 @@ rm -r license'''
|
186 | 213 |
|
187 | 214 | stage('Build qe-mac') {
|
188 | 215 | steps {
|
189 |
| - sh "$M2_HOME/bin/mvn -f qe/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=mac -Dmaven.test.skip=true -Pjavadoc-with-links package" |
| 216 | + sh "$M2_HOME/bin/mvn -f qe/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=mac -Dmaven.test.skip=true -DworkEnv=ci -Pjavadoc-with-links package" |
190 | 217 | sh '''cp qe/target/javafxTool-qe.jar javafxTool-qe.jar
|
191 | 218 | cp -r qe/target/lib lib
|
192 | 219 | cp -r qe/target/reports/apidocs apidocs
|
@@ -214,7 +241,7 @@ rm -r license'''
|
214 | 241 |
|
215 | 242 | stage('Build cg-mac') {
|
216 | 243 | steps {
|
217 |
| - sh "$M2_HOME/bin/mvn -f cg/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=mac -Dmaven.test.skip=true -Pjavadoc-with-links package" |
| 244 | + sh "$M2_HOME/bin/mvn -f cg/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=mac -Dmaven.test.skip=true -DworkEnv=ci -Pjavadoc-with-links package" |
218 | 245 | sh '''cp cg/target/javafxTool-cg.jar javafxTool-cg.jar
|
219 | 246 | cp -r cg/target/lib lib
|
220 | 247 | cp -r cg/target/reports/apidocs apidocs
|
@@ -243,14 +270,14 @@ rm -r license'''
|
243 | 270 | stage('Prepare Linux Build') {
|
244 | 271 | steps {
|
245 | 272 | timeout(time: 10, unit: 'MINUTES') {
|
246 |
| - sh "$M2_HOME/bin/mvn -f pom.xml -s $M2_HOME/conf/settings.xml -Djavafx.platform=linux -Dmaven.test.skip=true -Dmaven.javadoc.skip=true clean -T 1C install" |
| 273 | + sh "$M2_HOME/bin/mvn -f pom.xml -s $M2_HOME/conf/settings.xml -Djavafx.platform=linux -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -DworkEnv=ci clean -T 1C install" |
247 | 274 | }
|
248 | 275 | }
|
249 | 276 | }
|
250 | 277 |
|
251 | 278 | stage('Build smc-linux') {
|
252 | 279 | steps {
|
253 |
| - sh "$M2_HOME/bin/mvn -f smc/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=linux -Dmaven.test.skip=true -Pjavadoc-with-links package" |
| 280 | + sh "$M2_HOME/bin/mvn -f smc/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=linux -Dmaven.test.skip=true -DworkEnv=ci -Pjavadoc-with-links package" |
254 | 281 | sh '''cp smc/target/javafxTool-smc.jar javafxTool-smc.jar
|
255 | 282 | cp -r smc/target/lib lib
|
256 | 283 | cp -r smc/target/reports/apidocs apidocs
|
@@ -278,7 +305,7 @@ rm -r license'''
|
278 | 305 |
|
279 | 306 | stage('Build qe-linux') {
|
280 | 307 | steps {
|
281 |
| - sh "$M2_HOME/bin/mvn -f qe/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=linux -Dmaven.test.skip=true -Pjavadoc-with-links package" |
| 308 | + sh "$M2_HOME/bin/mvn -f qe/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=linux -Dmaven.test.skip=true -DworkEnv=ci -Pjavadoc-with-links package" |
282 | 309 | sh '''cp qe/target/javafxTool-qe.jar javafxTool-qe.jar
|
283 | 310 | cp -r qe/target/lib lib
|
284 | 311 | cp -r qe/target/reports/apidocs apidocs
|
@@ -306,7 +333,7 @@ rm -r license'''
|
306 | 333 |
|
307 | 334 | stage('Build cg-linux') {
|
308 | 335 | steps {
|
309 |
| - sh "$M2_HOME/bin/mvn -f cg/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=linux -Dmaven.test.skip=true -Pjavadoc-with-links package" |
| 336 | + sh "$M2_HOME/bin/mvn -f cg/pom.xml -s $M2_HOME/conf/settings.xml -Duser.name=${USER_NAME} -Djavafx.platform=linux -Dmaven.test.skip=true -DworkEnv=ci -Pjavadoc-with-links package" |
310 | 337 | sh '''cp cg/target/javafxTool-cg.jar javafxTool-cg.jar
|
311 | 338 | cp -r cg/target/lib lib
|
312 | 339 | cp -r cg/target/reports/apidocs apidocs
|
|
0 commit comments