Skip to content

Commit

Permalink
More CI tweaks for bootable jar
Browse files Browse the repository at this point in the history
  • Loading branch information
kabir committed Dec 22, 2023
1 parent d62b1e7 commit 9ada77f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/glow_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- port-to-glow

env:
WILDFLY_VERSION: 30.0.0.Final
WILDFLY_VERSION: 31.0.0.Beta1

# Only run the latest job
concurrency:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/glow_ci_internal_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ jobs:
${{ inputs.DEPLOYMENT_DIR }}/target/server/bin/add-user.sh -a -u 'quickstartAdmin' -p 'adminPwd1!' -g 'guest,user,admin'
fi
# mvn -B -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly-jar:start -Djar-file-name=${{ inputs.DEPLOYMENT_DIR }}/target/${{ inputs.QUICKSTART_PATH }}-bootable.jar -Dstartup-timeout=120
java -jar ${{ inputs.DEPLOYMENT_DIR }}/target/server-bootable.jar
java -jar ${{ inputs.DEPLOYMENT_DIR }}/target/server-bootable.jar &
# Sleep to wait for server to start (we should have a wait)
sleep 20
mvn -B verify -Pintegration-testing -Dserver.host=http://localhost:8080
mvn -B -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly-jar:shutdown
mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:shutdown
shell: bash
- name: Run after script
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/quickstart_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ jobs:
mvn -fae clean package -Pbootable-jar
echo "Starting bootable jar..."
# mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly-jar:start -Djar-file-name=${{ inputs.DEPLOYMENT_DIR }}/target/${{ inputs.QUICKSTART_PATH }}-bootable.jar -Dstartup-timeout=120
java -jar ${{ inputs.DEPLOYMENT_DIR }}/target/server-bootable.jar
java -jar ${{ inputs.DEPLOYMENT_DIR }}/target/server-bootable.jar &
# Sleep to wait for server to start (we should have a wait)
sleep 20
echo "Testing bootable jar..."
mvn -fae verify -Dserver.host=${{ inputs.SERVER_PROVISIONING_SERVER_HOST }} -Pintegration-testing
echo "Shutting down bootable jar..."
mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly-jar:shutdown
mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:shutdown
shell: bash
- name: Build ${{ inputs.QUICKSTART_PATH }} Quickstart with openshift profile
if: ${{ inputs.TEST_OPENSHIFT }}
Expand Down Expand Up @@ -234,13 +234,13 @@ jobs:
mvn -fae clean package -Pbootable-jar -Dversion.server=${{ needs.wildfly-build.outputs.wildfly-version }}
echo "Starting bootable jar..."
#mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly-jar:start -Djar-file-name=${{ inputs.DEPLOYMENT_DIR }}/target/${{ inputs.QUICKSTART_PATH }}-bootable.jar -Dstartup-timeout=120
java -jar ${{ inputs.DEPLOYMENT_DIR }}/target/server-bootable.jar
java -jar ${{ inputs.DEPLOYMENT_DIR }}/target/server-bootable.jar &
# Sleep to wait for server to start (we should have a wait)
sleep 20
echo "Testing bootable jar..."
mvn -fae verify -Dserver.host=${{ inputs.SERVER_PROVISIONING_SERVER_HOST }} -Pintegration-testing
echo "Shutting down bootable jar..."
mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly-jar:shutdown
mvn -f ${{ inputs.DEPLOYMENT_DIR }}/pom.xml wildfly:shutdown
shell: bash
- name: Build ${{ inputs.QUICKSTART_PATH }} Quickstart with openshift profile, and built Server version
if: ${{ inputs.TEST_OPENSHIFT }}
Expand Down

0 comments on commit 9ada77f

Please sign in to comment.