Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CI-CD/TeamCity/teamcity-pipeline-generic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# # Define the parameters:
# Go to the build settings and click on "Parameters".
# Define the following variables:
# env.WS_APIKEY={Your apiKey here}
# env.WS_PRODUCTNAME=TC_%system.teamcity.projectName%
# env.WS_PROJECTNAME=%system.teamcity.buildType.id%
# env.WS_WSS_URL=https://saas.whitesourcesoftware.com

# Create the following build step:
# Runner type: Commandline
# Step Name: Mend SCA Scan
# Run: Custom Script

echo "Downloading Mend"
if ! [ -f ./wss-unified-agent.jar ]; then
curl -fSL -R -JO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
if [[ "${'$'}(curl -sL https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar.sha256)" != "${'$'}(sha256sum wss-unified-agent.jar)" ]]; then
echo "Integrity Check Failed"
fi
fi
echo "Execute Mend"
java -jar wss-unified-agent.jar