diff --git a/buildkite/scripts/export-git-env-vars.sh b/buildkite/scripts/export-git-env-vars.sh index dfe4e0dd9fdd..cdbcf3695327 100755 --- a/buildkite/scripts/export-git-env-vars.sh +++ b/buildkite/scripts/export-git-env-vars.sh @@ -25,7 +25,12 @@ export BUILD_URL=${BUILDKITE_BUILD_URL} set -u export MINA_DEB_CODENAME=${MINA_DEB_CODENAME:=bullseye} -[[ -n "$BUILDKITE_BRANCH" ]] && export GITBRANCH=$(echo "$BUILDKITE_BRANCH" | sed 's!/!-!g; s!_!-!g; s!#!-!g') || export GITBRANCH=$(git name-rev --name-only $GITHASH | sed "s/remotes\/origin\///g" | sed 's!/!-!g; s!_!-!g; s!#!-!g' ) +if [[ -n "$BUILDKITE_BRANCH" ]]; then + export GITBRANCH=$(echo "$BUILDKITE_BRANCH" | sed 's!/!-!g; s!_!-!g; s!#!-!g') +else + export GITBRANCH=$(git name-rev --name-only $GITHASH | sed "s/remotes\/origin\///g" | sed 's!/!-!g; s!_!-!g; s!#!-!g' ) +fi + export RELEASE=unstable diff --git a/buildkite/scripts/run-test-executive-local.sh b/buildkite/scripts/run-test-executive-local.sh index 087ad7cc1e28..8512b93df0fb 100755 --- a/buildkite/scripts/run-test-executive-local.sh +++ b/buildkite/scripts/run-test-executive-local.sh @@ -37,6 +37,8 @@ fi # Don't prompt for answers during apt-get install export DEBIAN_FRONTEND=noninteractive +rm -f /etc/apt/sources.list.d/hashicorp.list + apt-get update apt-get install -y git apt-transport-https ca-certificates tzdata curl diff --git a/buildkite/src/Command/MinaArtifact.dhall b/buildkite/src/Command/MinaArtifact.dhall index 176e8380ae83..1af0da3f8658 100644 --- a/buildkite/src/Command/MinaArtifact.dhall +++ b/buildkite/src/Command/MinaArtifact.dhall @@ -180,7 +180,7 @@ let docker_step [ DockerImage.ReleaseSpec::{ , deps = deps , service = Artifacts.Type.BatchTxn - , network = Network.lowerName Network.Type.Devnet + , network = Network.lowerName spec.network , deb_codename = spec.debVersion , deb_profile = spec.profile , build_flags = spec.buildFlags diff --git a/scripts/export-git-env-vars.sh b/scripts/export-git-env-vars.sh index 373e2c57d5a6..c9f09e101e50 100755 --- a/scripts/export-git-env-vars.sh +++ b/scripts/export-git-env-vars.sh @@ -22,7 +22,11 @@ function find_most_recent_numeric_tag() { export GITHASH=$(git rev-parse --short=7 HEAD) export THIS_COMMIT_TAG=$(git tag --points-at HEAD) -[[ -n "$BRANCH_NAME" ]] && export GITBRANCH=$(echo "$BRANCH_NAME" | sed 's!/!-!g; s!_!-!g; s!#!-!g') || export GITBRANCH=$(git name-rev --name-only $GITHASH | sed "s/remotes\/origin\///g" | sed 's!/!-!g; s!_!-!g; s!#!-!g' ) +if [[ -n "$BRANCH_NAME" ]]; then + export GITBRANCH=$(echo "$BRANCH_NAME" | sed 's!/!-!g; s!_!-!g; s!#!-!g') +else + export GITBRANCH=$(git name-rev --name-only $GITHASH | sed "s/remotes\/origin\///g" | sed 's!/!-!g; s!_!-!g; s!#!-!g' ) +fi export GITTAG=$(find_most_recent_numeric_tag HEAD)