File tree Expand file tree Collapse file tree 2 files changed +34
-5
lines changed Expand file tree Collapse file tree 2 files changed +34
-5
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,11 @@ pipeline {
5656 name ' PLATFORM'
5757 values ' ubuntu-20.04 && immutable' , ' windows-2019 && windows-immutable' , ' darwin && orka && x86_64'
5858 }
59- axis {
60- name ' GO_VERSION'
61- values ' 1.17'
62- }
6359 }
6460 stages {
6561 stage(' Test' ) {
6662 steps {
67- withGithubNotify(context : " Test-${ GO_VERSION } - ${ PLATFORM} " ) {
63+ withGithubNotify(context : " Test-${ PLATFORM} " ) {
6864 deleteDir()
6965 unstash ' source'
7066 dir(" ${ BASE_DIR} " ){
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ #
3+ # Given the Golang release version this script will bump the version.
4+ #
5+ # This script is executed by the automation we are putting in place
6+ # and it requires the git add/commit commands.
7+ #
8+ # Parameters:
9+ # $1 -> the Golang release version to be bumped. Mandatory.
10+ #
11+ set -euo pipefail
12+ MSG=" parameter missing."
13+ GO_RELEASE_VERSION=${1:? $MSG }
14+
15+ OS=$( uname -s| tr ' [:upper:]' ' [:lower:]' )
16+
17+ if [ " ${OS} " == " darwin" ] ; then
18+ SED=" sed -i .bck"
19+ else
20+ SED=" sed -i"
21+ fi
22+
23+ echo " Update go version ${GO_RELEASE_VERSION} "
24+ echo " ${GO_RELEASE_VERSION} " > .go-version
25+ git add .go-version
26+
27+ ${SED} -E -e " s#(go:) \" [0-9]+\.[0-9]+\.[0-9]+\" #\1 \" ${GO_RELEASE_VERSION} \" #g" .golangci.yml
28+ git add .golangci.yml
29+
30+ git diff --staged --quiet || git commit -m " [Automation] Update go release version to ${GO_RELEASE_VERSION} "
31+ git --no-pager log -1
32+
33+ echo " You can now push and create a Pull Request"
You can’t perform that action at this time.
0 commit comments