-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'contrib/PaloAltoNetworks_EXPANDR-4821' into EXPANDR-4821
- Loading branch information
Showing
5 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
Utils/gitlab_triggers/trigger_content_instance_testing_build.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
c# !/usr/bin/env bash | ||
#!/usr/bin/env bash | ||
# This script triggers an instance-testing job in gitlab-CI. | ||
|
||
# For this script to work you will need to use a trigger token (see here for more about that: https://code.pan.run/help/ci/triggers/README#trigger-token) # disable-secrets-detection | ||
|
||
# This script takes the gitlab-ci trigger token as first parameter and the branch name as an optional second parameter (the default is the current branch). | ||
|
||
# Ways to run this script are: | ||
# 1. Utils/gitlab_triggers/trigger_content_nightly_build.sh <trigger-token> <branch-name> | ||
# 2. Utils/gitlab_triggers/trigger_content_nightly_build.sh <trigger-token> | ||
trigger_content_nightly_build.sh <trigger-token> [<branch-name>] | ||
if [[ "$#" -lt 1 ]]; then | ||
echo "Usage: $0 <trigger-token> <branch-name>[current-branch as default]" | ||
echo "Get the trigger token from here https://vault.paloaltonetworks.local/home#R2VuZXJpY1NlY3JldERldGFpbHM6RGF0YVZhdWx0OmIyMzJiNDU0LWEzOWMtNGY5YS1hMTY1LTQ4YjRlYzM1OTUxMzpSZWNvcmRJbmRleDowOklzVHJ1bmNhdGVk" # disable-secrets-detection | ||
exit 1 | ||
fi | ||
_gitlab_token=$1 | ||
|
||
[ -n "$2" ] && _branch="$2" || _branch="$(git branch --show-current)" | ||
[ -n "$2" ] && _branch="$2" || _branch="$(git branch --show-current)" | ||
|
||
source Utils/gitlab_triggers/trigger_build_url.sh | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
source ${SCRIPT_DIR}/trigger_build_url.sh | ||
|
||
curl "$BUILD_TRIGGER_URL" -F "ref=$_branch" -F "token=$_gitlab_token" -F "variables[INSTANCE_TESTS]=true" -F "variables[IFRA_ENV_TYPE]=Server 5.5" | jq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters