Files
xrpl-dev-portal/tool/jenkins.sh
mDuo13 5cd91c6f21 Branch/fork-aware Edit on GitHub links (2/2)
(Thrice-amended commit with proper bash syntax)
2018-03-07 15:16:29 -08:00

23 lines
613 B
Bash
Executable File

#!/bin/bash
# meant to be run from the root directory of the repo
## Test: show pull request data in build results
echo "ghprbAuthorRepoGitUrl is: " ${ghprbAuthorRepoGitUrl}
echo "ghprbSourceBranch is: " ${ghprbSourceBranch}
echo "ghprbPullId is: " ${ghprbPullId}
gitForkWithoutSuffix=${ghprbAuthorRepoGitUrl%.git}
if [ -n "$ghprbPullId" ];
then
dactyl_vars='--vars '"'"'{"github_forkurl": "'"$gitForkWithoutSuffix"'", "github_branch": "'"$ghprbSourceBranch"'", "github_pr_id": "'"$ghprbPullId"'"}'"'"
else
dactyl_vars=""
fi
set -e
tool/conflictmarkers.sh
tool/all-target-link-checker.sh "$dactyl_vars"