-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardize dogfood and small fixes (#527)
Depends on a fixed Jenkins LTS version instead of latest ensure reproducible builds. Don't bypass installation wizard by default as it's here to enforce security. Add a way to add Git build data into the Docker image
- Loading branch information
Showing
6 changed files
with
84 additions
and
9 deletions.
There are no files selected for viewing
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,3 +1,3 @@ | ||
* | ||
!blueocean/target/plugins | ||
!docker-demo/ | ||
!docker |
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
set -eu -o pipefail | ||
|
||
PROJECT_ROOT="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd)" | ||
|
||
usage() { | ||
cat <<EOF | ||
usage: $(basename "$0") COMMAND ARGS | ||
Helper script to query Git | ||
Commands: | ||
pr-id Find the Pull Request id | ||
Assume that 'git fetch --progress https://github.com/jenkinsci/blueocean-plugin.git +refs/pull/*/head:refs/remotes/origin/pr/*' already ran | ||
EOF | ||
exit 0 | ||
} | ||
|
||
pr-id() { | ||
local github_remote=origin | ||
local head=$(git rev-parse --verify HEAD) | ||
git show-ref | sed -n "s|^$head refs/remotes/${github_remote}/pr/\(.*\)$|\1|p" | ||
} | ||
|
||
command_name="$1"; shift; case "$command_name" in | ||
pr-id) | ||
pr-id "$@" | ||
;; | ||
*) | ||
usage | ||
esac |
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