Skip to content

Commit

Permalink
Fix bootable jar plugin usage
Browse files Browse the repository at this point in the history
Temporarily add sleep until we have plugin handling waiting
  • Loading branch information
kabir committed Dec 22, 2023
1 parent 35942d3 commit d62b1e7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/glow_ci_internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
QUICKSTART_PATH: ${{inputs.QUICKSTART_PATH}}
DEPLOYMENT_DIR: ${{inputs.DEPLOYMENT_DIR}}
PROFILE: 'provisioned-server'
# # Skip bootable jar until the plugin implements GLow support for bootable jar
# bootable-jar:
# name: Openshift ${{inputs.QUICKSTART_PATH}}
# if: ${{ contains(inputs.PROFILES, 'bootable-jar') }}
# uses: ./.github/workflows/glow_ci_internal_tests.yml
# with:
# QUICKSTART_PATH: ${{inputs.QUICKSTART_PATH}}
# DEPLOYMENT_DIR: ${{inputs.DEPLOYMENT_DIR}}
# PROFILE: 'bootable-jar'
# Skip bootable jar until the plugin implements GLow support for bootable jar
bootable-jar:
name: Openshift ${{inputs.QUICKSTART_PATH}}
if: ${{ contains(inputs.PROFILES, 'bootable-jar') }}
uses: ./.github/workflows/glow_ci_internal_tests.yml
with:
QUICKSTART_PATH: ${{inputs.QUICKSTART_PATH}}
DEPLOYMENT_DIR: ${{inputs.DEPLOYMENT_DIR}}
PROFILE: 'bootable-jar'
5 changes: 4 additions & 1 deletion .github/workflows/glow_ci_internal_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ jobs:
${{ inputs.DEPLOYMENT_DIR }}/target/server/bin/add-user.sh -a -u 'quickstartUser' -p 'quickstartPwd1!' -g 'guest,user,JBossAdmin,Users'
${{ 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
# 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
# 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
shell: bash
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/quickstart_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ jobs:
echo "Building bootable jar..."
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
# 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
# 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..."
Expand Down Expand Up @@ -230,7 +233,10 @@ jobs:
echo "Building bootable jar..."
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
#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
# 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..."
Expand Down

0 comments on commit d62b1e7

Please sign in to comment.