Sha256: 678b49083c3b321c1871bc260854a9483c36501791a94cfa491c3f5af47eaec6
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
#!/usr/bin/env bash set -exo pipefail # Enable git+ssh. Env variables are created on the fly with the gitCheckout git config remote.origin.url "git@github.com:${ORG_NAME}/${REPO_NAME}.git" # Enable to fetch branches when cloning with a detached and shallow clone git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*' # Force the git user details when pushing using the last commit details USER_MAIL=$(git log -1 --pretty=format:'%ae') USER_NAME=$(git log -1 --pretty=format:'%an') git config user.email "${USER_MAIL}" git config user.name "${USER_NAME}" # Checkout the branch as it's detached based by default. # See https://issues.jenkins-ci.org/browse/JENKINS-33171 git fetch --all git checkout "${BRANCH_NAME}" # Checkout the master branch to be able to rebase the *.x branch git checkout master # Ensure the master branch points to the original commit to avoid commit injection # when running the release pipeline. # used GIT_BASE_COMMIT instead GIT_COMMIT to support the MultiBranchPipelines. git reset --hard "${GIT_BASE_COMMIT}"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
elastic-apm-3.6.0 | .ci/prepare-git-context.sh |
elastic-apm-3.5.0 | .ci/prepare-git-context.sh |
elastic-apm-3.4.0 | .ci/prepare-git-context.sh |