From 9217c57419de69378c4bae19d00f0c0f68d657cd Mon Sep 17 00:00:00 2001 From: Reza Rahman Date: Sun, 21 Jul 2024 18:00:06 -0400 Subject: [PATCH 1/7] Minor tweaks --- .github/workflows/nightly.yml | 100 +++++++++++++++++----------------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f3db4f5..90fb27b 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -32,8 +32,8 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="valid Java SE versions are 8, 11, and 17" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." + if ![[$MAVEN_EXIT_CODE -ne 0] && [grep -q "$ERROR_MESSAGE" mvn_output.txt]]; then + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -56,12 +56,25 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="Core Profile is only supported for Jakarta EE 10" if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi rm -f mvn_output.txt + - name: Run Archetype for EE 8 MicroProfile, SE 8 + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -Dprofile=microprofile -DjavaVersion=8 -DoutputDirectory=app -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="valid Jakarta EE profiles are core, web, and full" + if ![[$MAVEN_EXIT_CODE -ne 0] && [grep -q "$ERROR_MESSAGE" mvn_output.txt]]; then + echo "Maven build did not fail, or the expected error message was not found. Test failed." + exit 1 + fi + + rm -f mvn_output.txt + - name: Run Archetype for EE 9, SE 8 run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -DjavaVersion=8 -DoutputDirectory=app -Dgoals="clean package" @@ -79,7 +92,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="Core Profile is only supported for Jakarta EE 10" if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -102,7 +115,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="Core Profile is only supported for Jakarta EE 10" if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -110,12 +123,12 @@ jobs: - name: Run Archetype for EE 10, SE 8 run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=full -DjavaVersion=8 -DoutputDirectory=app -Dgoals="clean package" | tee mvn_output.txt + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -DjavaVersion=8 -DoutputDirectory=app -Dgoals="clean package" | tee mvn_output.txt MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="Jakarta EE 10 does not support Java SE 8" if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -239,6 +252,17 @@ jobs: docker rmi test-image rm -rf app/tomee + - name: Run Archetype for EE 8, SE 8, WebLogic + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -DjavaVersion=8 -Druntime=weblogic -DoutputDirectory=app/weblogic -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="valid runtime values are none, glassfish, open-liberty, payara, tomee, and wildfly" + if ![[$MAVEN_EXIT_CODE -ne 0] && [grep -q "$ERROR_MESSAGE" mvn_output.txt]]; then + echo "Maven build did not fail, or the expected error message was not found. Test failed." + exit 1 + fi + - name: Run Archetype for EE 8, SE 8, WildFly run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -DjavaVersion=8 -Druntime=wildfly -DoutputDirectory=app/wildfly -Dgoals="clean package" @@ -251,14 +275,14 @@ jobs: docker rmi test-image rm -rf app/wildfly - - name: Run Archetype for EE 8, SE 8, WildFly, with Invalid Docker + - name: Run Archetype for EE 8, SE 8, WildFly, with invalid Docker option run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -DjavaVersion=8 -Druntime=wildfly -Ddocker=Y -DoutputDirectory=app/wildfly -Dgoals="clean package" | tee mvn_output.txt MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="valid Docker options are yes and no" if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -278,12 +302,12 @@ jobs: - name: Run Archetype for EE 9, SE 8, WildFly run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -Dprofile=full -DjavaVersion=8 -Druntime=wildfly -DoutputDirectory=app/wildfly -Dgoals="clean package" | tee mvn_output.txt + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9 -DjavaVersion=8 -Druntime=wildfly -DoutputDirectory=app/wildfly -Dgoals="clean package" | tee mvn_output.txt MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="WildFly does not offer a release for Jakarta EE 9 or Jakarta EE 9.1" if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -291,28 +315,17 @@ jobs: - name: Run Archetype for EE 9.1, SE 8, WildFly run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -Dprofile=full -DjavaVersion=8 -Druntime=wildfly -DoutputDirectory=app/wildfly -Dgoals="clean package" | tee mvn_output.txt + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=9.1 -DjavaVersion=8 -Druntime=wildfly -DoutputDirectory=app/wildfly -Dgoals="clean package" | tee mvn_output.txt MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="WildFly does not offer a release for Jakarta EE 9 or Jakarta EE 9.1" if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." + echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi rm -f mvn_output.txt - - name: Run Archetype for EE 8, SE 8, WebLogic - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -DjavaVersion=8 -Druntime=weblogic -DoutputDirectory=app/weblogic -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="valid runtime values are none, glassfish, open-liberty, payara, tomee, and wildfly" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - name: Set up Java SE 11 uses: actions/setup-java@v4 with: @@ -364,32 +377,6 @@ jobs: mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=core -DjavaVersion=11 -DoutputDirectory=app -Dgoals="clean package" rm -rf app - - name: Run Archetype for EE 10 Micro Profile, SE 11 - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=micro -DjavaVersion=11 -DoutputDirectory=app -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="valid Jakarta EE profiles are core, web, and full" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - - name: Run Archetype for EE 11, SE 11 - run: | - mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=11 -DjavaVersion=11 -DoutputDirectory=app -Dgoals="clean package" | tee mvn_output.txt - - MAVEN_EXIT_CODE=${PIPESTATUS[0]} - ERROR_MESSAGE="valid Jakarta EE versions are 8, 9, 9.1, and 10" - if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then - echo "Maven build did not fail, or the expected error message was not found. Test Failed." - exit 1 - fi - - rm -f mvn_output.txt - - name: Run Archetype for EE 8, SE 11, GlassFish run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -DjavaVersion=11 -Druntime=glassfish -DoutputDirectory=app/glassfish -Dgoals="clean package" @@ -781,6 +768,19 @@ jobs: mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=10 -Dprofile=core -DjavaVersion=17 -DoutputDirectory=app -Dgoals="clean package" rm -rf app + - name: Run Archetype for EE 11, SE 17 + run: | + mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=11 -DjavaVersion=17 -DoutputDirectory=app -Dgoals="clean package" | tee mvn_output.txt + + MAVEN_EXIT_CODE=${PIPESTATUS[0]} + ERROR_MESSAGE="valid Jakarta EE versions are 8, 9, 9.1, and 10" + if ![[$MAVEN_EXIT_CODE -ne 0] && [grep -q "$ERROR_MESSAGE" mvn_output.txt]]; then + echo "Maven build did not fail, or the expected error message was not found. Test failed." + exit 1 + fi + + rm -f mvn_output.txt + - name: Run Archetype for EE 8, SE 17, GlassFish run: | mvn archetype:generate -DinteractiveMode=false -DaskForDefaultPropertyValues=false -DarchetypeGroupId=org.eclipse.starter -DarchetypeArtifactId=jakarta-starter -DarchetypeVersion=2.3.0-SNAPSHOT -DjakartaVersion=8 -DjavaVersion=17 -Druntime=glassfish -DoutputDirectory=app/glassfish -Dgoals="clean package" From a623a4c0bbf5f81e58b695340b1089db9ef40abb Mon Sep 17 00:00:00 2001 From: Reza Rahman Date: Sun, 21 Jul 2024 18:08:54 -0400 Subject: [PATCH 2/7] Update nightly.yml --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 90fb27b..d7cdc18 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -68,7 +68,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="valid Jakarta EE profiles are core, web, and full" - if ![[$MAVEN_EXIT_CODE -ne 0] && [grep -q "$ERROR_MESSAGE" mvn_output.txt]]; then + if ![[$MAVEN_EXIT_CODE -ne 0] && [grep -q "$ERROR_MESSAGE" mvn_output.txt;]]; then echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi From 54ca114bd9f5020bc2d63620d610fce2b4cfa9ec Mon Sep 17 00:00:00 2001 From: Reza Rahman Date: Sun, 21 Jul 2024 18:13:40 -0400 Subject: [PATCH 3/7] Update nightly.yml --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index d7cdc18..6d44b86 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -68,7 +68,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="valid Jakarta EE profiles are core, web, and full" - if ![[$MAVEN_EXIT_CODE -ne 0] && [grep -q "$ERROR_MESSAGE" mvn_output.txt;]]; then + if !{[$MAVEN_EXIT_CODE -ne 0] && [grep -q "$ERROR_MESSAGE" mvn_output.txt;]}; then echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi From e2bc305dda76dce3364d699d0c7ef2aa229fa6d7 Mon Sep 17 00:00:00 2001 From: Reza Rahman Date: Sun, 21 Jul 2024 18:18:31 -0400 Subject: [PATCH 4/7] Update nightly.yml --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 6d44b86..63672b6 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -68,7 +68,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="valid Jakarta EE profiles are core, web, and full" - if !{[$MAVEN_EXIT_CODE -ne 0] && [grep -q "$ERROR_MESSAGE" mvn_output.txt;]}; then + if !{[$MAVEN_EXIT_CODE -ne 0] && grep -q "$ERROR_MESSAGE" mvn_output.txt;}; then echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi From d6cc3f5da05f94aeb4d385b44f3843964a927496 Mon Sep 17 00:00:00 2001 From: Reza Rahman Date: Sun, 21 Jul 2024 18:23:46 -0400 Subject: [PATCH 5/7] Update nightly.yml --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 63672b6..9457ce6 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -68,7 +68,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="valid Jakarta EE profiles are core, web, and full" - if !{[$MAVEN_EXIT_CODE -ne 0] && grep -q "$ERROR_MESSAGE" mvn_output.txt;}; then + if !{ [$MAVEN_EXIT_CODE -ne 0] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi From d23a7c6c6e6600042818c2a216683990a057fac5 Mon Sep 17 00:00:00 2001 From: Reza Rahman Date: Sun, 21 Jul 2024 18:27:50 -0400 Subject: [PATCH 6/7] Update nightly.yml --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 9457ce6..eaa7a9e 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -68,7 +68,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="valid Jakarta EE profiles are core, web, and full" - if !{ [$MAVEN_EXIT_CODE -ne 0] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi From 63a68cf401d900097e69bc7a07c4c298b6904422 Mon Sep 17 00:00:00 2001 From: Reza Rahman Date: Sun, 21 Jul 2024 18:37:10 -0400 Subject: [PATCH 7/7] Fix syntax --- .github/workflows/nightly.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index eaa7a9e..1bf5869 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -32,7 +32,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="valid Java SE versions are 8, 11, and 17" - if ![[$MAVEN_EXIT_CODE -ne 0] && [grep -q "$ERROR_MESSAGE" mvn_output.txt]]; then + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -258,7 +258,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="valid runtime values are none, glassfish, open-liberty, payara, tomee, and wildfly" - if ![[$MAVEN_EXIT_CODE -ne 0] && [grep -q "$ERROR_MESSAGE" mvn_output.txt]]; then + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi @@ -774,7 +774,7 @@ jobs: MAVEN_EXIT_CODE=${PIPESTATUS[0]} ERROR_MESSAGE="valid Jakarta EE versions are 8, 9, 9.1, and 10" - if ![[$MAVEN_EXIT_CODE -ne 0] && [grep -q "$ERROR_MESSAGE" mvn_output.txt]]; then + if ! { [ $MAVEN_EXIT_CODE -ne 0 ] && grep -q "$ERROR_MESSAGE" mvn_output.txt; }; then echo "Maven build did not fail, or the expected error message was not found. Test failed." exit 1 fi