@@ -38,6 +38,11 @@ ROOT_FOLDER="$(cd "$(dirname "$0")"; cd ../../ ; pwd -P)"
3838
3939cd " $ROOT_FOLDER "
4040
41+
42+ sed -i ' ' -E " s/agent.version=[0-9]+.[0-9].+[0-9]+/agent.version=$VERSION /g" agent/src/main/resources/agent.properties
43+ sed -i ' ' -E " s/currentAgentVersion = \" [0-9]+.[0-9].+[0-9]+\" /currentAgentVersion = $VERSION /g" server/src/main/java/com/testsigma/dto/AgentDTO.java
44+
45+
4146echo " Generating complete agent builds with web and mobile"
4247
4348sh " $ROOT_FOLDER /deploy/compile.sh" --UI_BUILD_CONF=docker --LOCAL_AGENT_TAG=$VERSION
@@ -46,16 +51,21 @@ sh "$ROOT_FOLDER/deploy/installer/create_zip.sh" Windows windows $VERSION
4651sh " $ROOT_FOLDER /deploy/installer/create_zip.sh" Mac mac $VERSION
4752sh " $ROOT_FOLDER /deploy/installer/create_zip.sh" Linux linux $VERSION
4853
49- aws s3 cp $ROOT_FOLDER /Testsigma-Windows-$VERSION .zip s3://hybrid-staging.testsigma.com/community/server/$VERSION /Testsigma-Windows-$VERSION .zip --acl public-read
50- aws s3 cp $ROOT_FOLDER /Testsigma-Mac-$VERSION .zip s3://hybrid-staging.testsigma.com/community/server/$VERSION /Testsigma-Mac-$VERSION .zip --acl public-read
51- aws s3 cp $ROOT_FOLDER /Testsigma-Linux-$VERSION .zip s3://hybrid-staging.testsigma.com/community/server/$VERSION /Testsigma-Linux-$VERSION .zip --acl public-read
52-
5354if [[ " $PUBLISH_TO_GIT " == " true" * ]]; then
54- gh release upload $VERSION $ROOT_FOLDER /Testsigma-Windows-$VERSION .zip --clobber
55- gh release upload $VERSION $ROOT_FOLDER /Testsigma-Mac-$VERSION .zip --clobber
56- gh release upload $VERSION $ROOT_FOLDER /Testsigma-Linux-$VERSION .zip --clobber
55+ gh release upload $VERSION $ROOT_FOLDER /Testsigma-Windows-$VERSION .zip --clobber
56+ gh release upload $VERSION $ROOT_FOLDER /Testsigma-Mac-$VERSION .zip --clobber
57+ gh release upload $VERSION $ROOT_FOLDER /Testsigma-Linux-$VERSION .zip --clobber
58+ aws s3 cp $ROOT_FOLDER /Testsigma-Windows-$VERSION .zip s3://hybrid-staging.testsigma.com/community/server/release/$VERSION /Testsigma-Windows-$VERSION .zip --acl public-read
59+ aws s3 cp $ROOT_FOLDER /Testsigma-Mac-$VERSION .zip s3://hybrid-staging.testsigma.com/community/server/release/$VERSION /Testsigma-Mac-$VERSION .zip --acl public-read
60+ aws s3 cp $ROOT_FOLDER /Testsigma-Linux-$VERSION .zip s3://hybrid-staging.testsigma.com/community/server/release/$VERSION /Testsigma-Linux-$VERSION .zip --acl public-read
61+ else
62+ aws s3 cp $ROOT_FOLDER /Testsigma-Windows-$VERSION .zip s3://hybrid-staging.testsigma.com/community/server/$VERSION /Testsigma-Windows-$VERSION .zip --acl public-read
63+ aws s3 cp $ROOT_FOLDER /Testsigma-Mac-$VERSION .zip s3://hybrid-staging.testsigma.com/community/server/$VERSION /Testsigma-Mac-$VERSION .zip --acl public-read
64+ aws s3 cp $ROOT_FOLDER /Testsigma-Linux-$VERSION .zip s3://hybrid-staging.testsigma.com/community/server/$VERSION /Testsigma-Linux-$VERSION .zip --acl public-read
5765fi
5866
67+
68+
5969rm -f $ROOT_FOLDER /Testsigma-Windows-$VERSION .zip
6070rm -f $ROOT_FOLDER /Testsigma-Mac-$VERSION .zip
6171rm -f $ROOT_FOLDER /Testsigma-Linux-$VERSION .zip
0 commit comments