check all the variables
This commit is contained in:
parent
11b787e8b1
commit
3232b5c7bb
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -1,19 +1,20 @@
|
|||||||
def buildAndPush() {
|
def buildAndPush() {
|
||||||
|
// env.ARCH is the system architecture. some apps can be generic (amd64, arm64),
|
||||||
|
// but apps that compile for specific hardware (like web3-proxy) will need more specific tags (amd64_epyc2, arm64_graviton2, intel_xeon3, etc.)
|
||||||
// env.BRANCH_NAME is set to the git branch name by default
|
// env.BRANCH_NAME is set to the git branch name by default
|
||||||
// env.REGISTRY is the repository url for this pipeline
|
// env.REGISTRY is the repository url for this pipeline
|
||||||
// env.GIT_SHORT is the git short hash of the currently checked out repo
|
// env.GIT_SHORT is the git short hash of the currently checked out repo
|
||||||
// env.LATEST_BRANCH is the branch name that gets tagged latest
|
// env.LATEST_BRANCH is the branch name that gets tagged latest
|
||||||
// env.ARCH is the system architecture. some apps can be generic (amd64, arm64),
|
|
||||||
// but apps that compile for specific hardware (like web3-proxy) will need more specific tags (amd64_epyc2, arm64_graviton2, intel_xeon3, etc.)
|
|
||||||
|
|
||||||
// TODO: check that this system actually matches the given arch
|
// TODO: check that this system actually matches the given arch
|
||||||
sh '''#!/bin/bash
|
sh '''#!/bin/bash
|
||||||
set -eux -o pipefail
|
set -eux -o pipefail
|
||||||
|
|
||||||
[ -n "$GIT_SHORT" ]
|
|
||||||
[ -n "$GIT_SHORT" ]
|
|
||||||
[ -n "$REGISTRY" ]
|
|
||||||
[ -n "$ARCH" ]
|
[ -n "$ARCH" ]
|
||||||
|
[ -n "$BRANCH_NAME" ]
|
||||||
|
[ -n "$REGISTRY" ]
|
||||||
|
[ -n "$GIT_SHORT" ]
|
||||||
|
[ -n "$LATEST_BRANCH" ]
|
||||||
|
|
||||||
# deterministic mtime on .git keeps Dockerfiles that do 'ADD . .' or similar
|
# deterministic mtime on .git keeps Dockerfiles that do 'ADD . .' or similar
|
||||||
# without this, the build process always thinks the directory has changes
|
# without this, the build process always thinks the directory has changes
|
||||||
|
Loading…
Reference in New Issue
Block a user