Compare commits
1 commit
786c818509
...
fb7d1842e4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb7d1842e4 |
1 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
|||
# FORGE_URL - Forge instance URL (e.g. http://localhost:3000)
|
||||
# FORGE_TOKEN - Forge API token
|
||||
# FACTORY_ROOT - Root of the disinto factory
|
||||
# PROJECT_NAME - Name of the project
|
||||
#
|
||||
# Usage:
|
||||
# source "${FACTORY_ROOT}/lib/ci-setup.sh"
|
||||
|
|
@ -24,6 +25,7 @@ _load_ci_context() {
|
|||
[ -z "${FORGE_URL:-}" ] && missing+=("FORGE_URL")
|
||||
[ -z "${FORGE_TOKEN:-}" ] && missing+=("FORGE_TOKEN")
|
||||
[ -z "${FACTORY_ROOT:-}" ] && missing+=("FACTORY_ROOT")
|
||||
[ -z "${PROJECT_NAME:-}" ] && missing+=("PROJECT_NAME")
|
||||
if [ "${#missing[@]}" -gt 0 ]; then
|
||||
echo "Error: ci-setup.sh requires these globals to be set: ${missing[*]}" >&2
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue