diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index f568df2ac..0712e2bf6 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -21,7 +21,7 @@ jobs: - uses: actions/setup-go@v1 with: - go-version: '1.13.x' + go-version: '1.15.x' - name: Install Groovy run: sudo apt-get update && sudo apt-get install groovy -y diff --git a/.github/workflows/integration-tests-pr.yaml b/.github/workflows/integration-tests-pr.yaml index 41f1122a0..da3cd4745 100644 --- a/.github/workflows/integration-tests-pr.yaml +++ b/.github/workflows/integration-tests-pr.yaml @@ -76,7 +76,7 @@ jobs: curl --location --request POST 'https://api.github.com/repos/SAP/jenkins-library/statuses/${{ steps.commitId.outputs.commitId }}' -H 'Content-Type: application/json' --data '{"state": "pending", "context": "Go / integration-tests", "target_url": "https://github.com/SAP/jenkins-library/actions/runs/${{ github.run_id }}"}' -H 'Authorization: token ${{secrets.INTEGRATION_TEST_VOTING_TOKEN}}' - uses: actions/setup-go@v1 with: - go-version: '1.13.x' + go-version: '1.15.x' - name: build env: CGO_ENABLED: 0 diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index 7114d09ce..cb0ebb382 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -55,7 +55,7 @@ jobs: curl --location --request POST 'https://api.github.com/repos/SAP/jenkins-library/statuses/${{ steps.commitId.outputs.commitId }}' -H 'Content-Type: application/json' --data '{"state": "pending", "context": "Go / integration-tests", "target_url": "https://github.com/SAP/jenkins-library/actions/runs/${{ github.run_id }}"}' -H 'Authorization: token ${{secrets.INTEGRATION_TEST_VOTING_TOKEN}}' - uses: actions/setup-go@v1 with: - go-version: '1.13.x' + go-version: '1.15.x' - name: build env: CGO_ENABLED: 0 diff --git a/.github/workflows/update-go-dependencies.yaml b/.github/workflows/update-go-dependencies.yaml index db395d0a0..b3a34749f 100644 --- a/.github/workflows/update-go-dependencies.yaml +++ b/.github/workflows/update-go-dependencies.yaml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v1 with: - go-version: '1.13.x' + go-version: '1.15.x' - name: Perform update run: | git checkout -B gh-action-update-golang-dependencies diff --git a/.github/workflows/upload-go-master.yml b/.github/workflows/upload-go-master.yml index a2639a0a3..7aab581d7 100644 --- a/.github/workflows/upload-go-master.yml +++ b/.github/workflows/upload-go-master.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v1 - uses: actions/setup-go@v1 with: - go-version: '1.13.x' + go-version: '1.15.x' - env: CGO_ENABLED: 0 run: | diff --git a/.github/workflows/verify-go.yml b/.github/workflows/verify-go.yml index 2bf150415..dbf1d32e0 100644 --- a/.github/workflows/verify-go.yml +++ b/.github/workflows/verify-go.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/setup-go@v1 with: - go-version: '1.13.x' + go-version: '1.15.x' - name: Cache Golang Packages uses: actions/cache@v1 with: @@ -38,7 +38,7 @@ jobs: steps: - uses: actions/setup-go@v1 with: - go-version: '1.13.x' + go-version: '1.15.x' - name: Cache Golang Packages uses: actions/cache@v1 with: @@ -58,7 +58,7 @@ jobs: steps: - uses: actions/setup-go@v1 with: - go-version: '1.13.x' + go-version: '1.15.x' - name: Cache Golang Packages uses: actions/cache@v1 with: @@ -78,7 +78,7 @@ jobs: steps: - uses: actions/setup-go@v1 with: - go-version: '1.13.x' + go-version: '1.15.x' - name: Cache Golang Packages uses: actions/cache@v1 with: diff --git a/Dockerfile b/Dockerfile index 1ce0eca40..225dcb34f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.13 AS build-env +FROM golang:1.15 AS build-env COPY . /build WORKDIR /build diff --git a/go.mod b/go.mod index 1d9012997..aa27e3469 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/SAP/jenkins-library -go 1.13 +go 1.15 require ( github.com/360EntSecGroup-Skylar/excelize/v2 v2.3.0 diff --git a/src/com/sap/piper/PiperGoUtils.groovy b/src/com/sap/piper/PiperGoUtils.groovy index 3028987b8..25748cada 100644 --- a/src/com/sap/piper/PiperGoUtils.groovy +++ b/src/com/sap/piper/PiperGoUtils.groovy @@ -25,7 +25,7 @@ class PiperGoUtils implements Serializable { if (steps.env.REPOSITORY_UNDER_TEST && steps.env.LIBRARY_VERSION_UNDER_TEST) { steps.echo("Running in a consumer test, building unit-under-test binary for verification.") - steps.dockerExecute(script: steps, dockerImage: 'golang:1.13', dockerOptions: '-u 0', dockerEnvVars: [ + steps.dockerExecute(script: steps, dockerImage: 'golang:1.15', dockerOptions: '-u 0', dockerEnvVars: [ REPOSITORY_UNDER_TEST: steps.env.REPOSITORY_UNDER_TEST, LIBRARY_VERSION_UNDER_TEST: steps.env.LIBRARY_VERSION_UNDER_TEST ]) {