Limit Jenkins to only one build at a time (#885)
* Fix docker images, again * Limit jenkins to only one build of a branch at a time
This commit is contained in:
parent
706f20611d
commit
a5af25c9c2
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -1,4 +1,5 @@
|
||||
node('node') {
|
||||
disableConcurrentBuilds()
|
||||
try {
|
||||
currentBuild.result = "SUCCESS"
|
||||
|
||||
|
@ -5,7 +5,7 @@ FROM storjlabs/golang as build-env
|
||||
|
||||
# final stage
|
||||
FROM alpine
|
||||
ENV CONF_PATH=/root/.local/share/storj/uplink/config.yaml \
|
||||
ENV CONF_PATH=/root/.local/share/storj/uplink \
|
||||
API_KEY= \
|
||||
SATELLITE_ADDR=
|
||||
EXPOSE 7776/udp \
|
||||
|
@ -1,11 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -euo pipefail
|
||||
|
||||
if [[ ! -f "${CONF_PATH}" ]]; then
|
||||
if [[ ! -d "${CONF_PATH}" ]]; then
|
||||
./gateway setup
|
||||
fi
|
||||
|
||||
RUN_PARAMS="${RUN_PARAMS:-} --config ${CONF_PATH}"
|
||||
RUN_PARAMS="${RUN_PARAMS:-} --config-dir ${CONF_PATH}"
|
||||
|
||||
if [[ -n "${API_KEY}" ]]; then
|
||||
RUN_PARAMS="${RUN_PARAMS} --client.api-key ${API_KEY}"
|
||||
|
@ -6,7 +6,7 @@ FROM storjlabs/golang as build-env
|
||||
# final stage
|
||||
FROM alpine
|
||||
ENV API_KEY= \
|
||||
CONF_PATH=/root/.local/share/storj/satellite/config.yaml \
|
||||
CONF_PATH=/root/.local/share/storj/satellite \
|
||||
OVERLAY_URL=redis://redis:6379/?db=0 \
|
||||
BOOTSTRAP_ADDR=bootstrap.storj.io:8080
|
||||
EXPOSE 7776/udp \
|
||||
|
@ -1,11 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -euo pipefail
|
||||
|
||||
if [[ ! -f "${CONF_PATH}" ]]; then
|
||||
if [[ ! -d "${CONF_PATH}" ]]; then
|
||||
./satellite setup
|
||||
fi
|
||||
|
||||
RUN_PARAMS="${RUN_PARAMS:-} --config ${CONF_PATH}"
|
||||
RUN_PARAMS="${RUN_PARAMS:-} --config-dir ${CONF_PATH}"
|
||||
|
||||
if [[ -n "${OVERLAY_URL:-}" ]]; then
|
||||
RUN_PARAMS="${RUN_PARAMS} --overlay.database-url ${OVERLAY_URL}"
|
||||
|
@ -5,7 +5,7 @@ FROM storjlabs/golang as build-env
|
||||
|
||||
# final stage
|
||||
FROM alpine
|
||||
ENV CONF_PATH=/root/.local/share/storj/storagenode/config.yaml \
|
||||
ENV CONF_PATH=/root/.local/share/storj/storagenode \
|
||||
SATELLITE_ADDR=
|
||||
EXPOSE 7776/udp \
|
||||
7777
|
||||
|
@ -1,11 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -euo pipefail
|
||||
|
||||
if [[ ! -f "${CONF_PATH}" ]]; then
|
||||
if [[ ! -d "${CONF_PATH}" ]]; then
|
||||
./storagenode setup
|
||||
fi
|
||||
|
||||
RUN_PARAMS="${RUN_PARAMS:-} --config ${CONF_PATH}"
|
||||
RUN_PARAMS="${RUN_PARAMS:-} --config-dir ${CONF_PATH}"
|
||||
|
||||
if [ -n "${SATELLITE_ADDR:-}" ]; then
|
||||
RUN_PARAMS="${RUN_PARAMS} --kademlia.bootstrap-addr $SATELLITE_ADDR"
|
||||
|
Loading…
Reference in New Issue
Block a user