Skip to content

Commit

Permalink
feat: updating run.sh bug fix parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-lorro committed May 30, 2024
1 parent 20292b0 commit 6be6983
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ check_environment_variables() {
"buildId"
"proxyHost"
"proxyPort"
"noProxyJava"
"mavenOptions"

)

# Check if any of the required variables are not set
Expand All @@ -56,12 +55,12 @@ check_environment_variables() {
check_environment_variables || exit 1

# Echo the command to be captured in logs
echo "Now running [ mvn --batch-mode clean verify $mavenOptions -U -Dwdm.proxy=${proxyHost}:${proxyPort} -Dhttps.proxyHost=${proxyHost} -Dhttps.proxyPort=${proxyPort} -Dhttp.proxyHost=${proxyHost} -Dhttp.proxyPort=${proxyPort} -Dhttp.nonProxyHosts=${noProxyJava} -Denv=${platformEnv} -Dbrowser=${browserName} -DbrowserVersion=${browserVersion} -Dplatform=${platform} -DgridURL=_hidden_ -Dtag.name=\"(not ${exclude_tags})\" -Dcucumber.filter.tags=\"${cucumberTags}\" ] .."
echo "Now running [ mvn --batch-mode clean verify $mavenOptions -U -Dwdm.proxy=${proxyHost}:${proxyPort} -Dhttps.proxyHost=${proxyHost} -Dhttps.proxyPort=${proxyPort} -Dhttp.proxyHost=${proxyHost} -Dhttp.proxyPort=${proxyPort} -Dhttp.nonProxyHosts=${noProxyJava} -Denv=${platformEnv} -Dbrowser=${browserName} -DbrowserVersion=${browserVersion} -Dplatform=${platform} -DgridURL=_hidden_ -Dtag.name=\"(not ${exclude_tags})\" -Dcucumber.filter.tags=${cucumberTags} ] .."

if [ $? -eq 0 ]; then
mvn --batch-mode clean verify $mavenOptions -U -Dwdm.proxy=${proxyHost}:${proxyPort} -Dhttps.proxyHost=${proxyHost} -Dhttps.proxyPort=${proxyPort} -Dhttp.proxyHost=${proxyHost} -Dhttp.proxyPort=${proxyPort} -Dhttp.nonProxyHosts=${noProxyJava} -Denv=${platformEnv} -Dbrowser=${browserName} -DbrowserVersion=${browserVersion} -Dplatform=${platform} -DgridURL=${gridURL} -Dtag.name="(not ${exclude_tags})" -Dcucumber.filter.tags="${cucumberTags}"
mvn --batch-mode clean verify $mavenOptions -U -Dwdm.proxy=${proxyHost}:${proxyPort} -Dhttps.proxyHost=${proxyHost} -Dhttps.proxyPort=${proxyPort} -Dhttp.proxyHost=${proxyHost} -Dhttp.proxyPort=${proxyPort} -Dhttp.nonProxyHosts=${noProxyJava} -Denv=${platformEnv} -Dbrowser=${browserName} -DbrowserVersion=${browserVersion} -Dplatform=${platform} -DgridURL=${gridURL} -Dtag.name="(not ${exclude_tags})" -Dcucumber.filter.tags=${cucumberTags}
zip -qr allure.zip target Reports
aws s3 cp allure.zip s3://${resultsTargetBucket}/${resultsTargetBucketPath}/${resultsBuildNumber}-${buildId}/
aws s3 cp allure.zip s3://${resultsTargetBucket}/${resultsTargetBucketPath}/${buildId}/
else
echo "Maven command failed!"
fi
fi

0 comments on commit 6be6983

Please sign in to comment.