Skip to content

Commit

Permalink
fix:added renaming of zip file in run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
1dson committed Jan 14, 2025
1 parent 893f923 commit 0e4ff6c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,17 @@ if [ $? -eq 0 ]; then
mvn --batch-mode clean verify -fae -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} -Dcucumber.options="-- io.qameta.allure.cucumber7jvm.AllureCucumber7Jvm"
fi

mvn allure:report
mvn allure:report
# create the report zip file
# rename zip
mv allure.zip allure_attempt_${buildId}.zip

zip -qr allure_attempt_${buildId}.zip target
cd target
aws s3 cp site s3://${resultsTargetBucket}/${resultsTargetBucketPath}/${buildId}/site/ --recursive
aws s3 cp ../allure_attempt_${buildId}.zip s3://${resultsTargetBucket}/${resultsTargetBucketPath}/${buildId}/
zip -qr allure.zip target
cd target
aws s3 cp site s3://${resultsTargetBucket}/${resultsTargetBucketPath}/${buildId}/site/ --recursive
aws s3 cp ../allure.zip s3://${resultsTargetBucket}/${resultsTargetBucketPath}/${buildId}/
else
echo "Maven command failed!"
fi
fi





0 comments on commit 0e4ff6c

Please sign in to comment.