From 7b154d9e8cf826441d9d42253944ca4e0dc7399c Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 10 Feb 2023 01:06:50 -0800 Subject: [PATCH] check all the variables --- Jenkinsfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 47cb0c2b..17085022 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,19 +1,20 @@ 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.REGISTRY is the repository url for this pipeline // 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.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 sh '''#!/bin/bash set -eux -o pipefail - [ -n "$GIT_SHORT" ] - [ -n "$GIT_SHORT" ] - [ -n "$REGISTRY" ] [ -n "$ARCH" ] + [ -n "$BRANCH_NAME" ] + [ -n "$REGISTRY" ] + [ -n "$GIT_SHORT" ] + [ -n "$LATEST_BRANCH" ] # deterministic mtime on .git keeps Dockerfiles that do 'ADD . .' or similar # without this, the build process always thinks the directory has changes