-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nats-server version for release-notes
Fixes: cloudfoundry/nats-release#73
- Loading branch information
1 parent
7740ff6
commit c1202c6
Showing
4 changed files
with
59 additions
and
0 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
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,14 @@ | ||
--- | ||
platform: linux | ||
|
||
inputs: | ||
- name: ci | ||
- name: repo | ||
|
||
outputs: | ||
- name: command-output | ||
|
||
params: | ||
CMD: | ||
run: | ||
path: ci/shared/tasks/run-command-for-repo/task.bash |
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,7 @@ | ||
--- | ||
readme: | | ||
This task will run a generic command for a repo and output can be saved to command-output | ||
oses: | ||
- linux | ||
params: | ||
CMD: Multiline command to run |
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,19 @@ | ||
#!/bin/bash | ||
|
||
set -eEu | ||
set -o pipefail | ||
|
||
THIS_FILE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
export TASK_NAME="$(basename $THIS_FILE_DIR)" | ||
source "$THIS_FILE_DIR/../../../shared/helpers/helpers.bash" | ||
unset THIS_FILE_DIR | ||
|
||
function run(){ | ||
pushd "repo" > /dev/null | ||
|
||
eval "${CMD}" | ||
|
||
popd > /dev/null | ||
} | ||
|
||
run "$@" |