1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

Update go version to 1.18 (#3783)

* Update go version to 1.18

* Update go version to 1.18

* Create awsS3Upload (#3737)

* add Step awsS3Upload

* fix JSON Read

* fix groovy wrapper

* change credentials to secret text

* Change credentials type to token

* add cleanup for environment variables

* Add AwsS3UploadCommand to piper.go

* add documentation of awsS3Upload

* Fix JSON String Example in Documentation

* add the Upload of whole directories

* add Logging to awsS3Upload.go

* imporve Logging

* fix and improve unit tests

* fix non-existing-filepaths-Bug

* fix windows filepaths

* remove ... from logging

* change step description

* fix PR Tests

* remove redundant code

* try to run tests sequentially

* fix file.Close

* executed go mod tidy

* requested changes

* fix comments and awsCredentials

* Update documentation/docs/steps/awsS3Upload.md

Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>

* use temporary files for unit tests

* executed go generate

Co-authored-by: ffeldmann <f.feldmann@sap.com>
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
Co-authored-by: Thorsten Duda <thorsten.duda@sap.com>

* fix go.sum

* Fix project config reset when preset is set (#3782)

Co-authored-by: Julian Schmitt <97178428+JulianPSchmitt@users.noreply.github.com>
Co-authored-by: ffeldmann <f.feldmann@sap.com>
Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
Co-authored-by: Adrien <99400874+hubadr@users.noreply.github.com>
This commit is contained in:
Thorsten Duda 2022-05-19 10:30:10 +02:00 committed by GitHub
parent 3d48364862
commit 7748e81b59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 314 deletions

View File

@ -21,7 +21,7 @@ jobs:
- uses: actions/setup-go@v1
with:
go-version: '1.17.x'
go-version: '1.18.x'
- name: Install Groovy
run: sudo apt-get update && sudo apt-get install groovy -y

View File

@ -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.17.x'
go-version: '1.18.x'
- name: build
env:
CGO_ENABLED: 0

View File

@ -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.17.x'
go-version: '1.18.x'
- name: build
env:
CGO_ENABLED: 0

View File

@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: '1.17.x'
go-version: '1.18.x'
- name: Perform update
run: |
git checkout -B gh-action-update-golang-dependencies

View File

@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-go@v1
with:
go-version: '1.17.x'
go-version: '1.18.x'
- env:
CGO_ENABLED: 0
run: |

View File

@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/setup-go@v1
with:
go-version: '1.17.x'
go-version: '1.18.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.17.x'
go-version: '1.18.x'
- name: Cache Golang Packages
uses: actions/cache@v1
with:
@ -69,7 +69,7 @@ jobs:
steps:
- uses: actions/setup-go@v1
with:
go-version: '1.17.x'
go-version: '1.18.x'
- name: Cache Golang Packages
uses: actions/cache@v1
with:
@ -89,7 +89,7 @@ jobs:
steps:
- uses: actions/setup-go@v1
with:
go-version: '1.17.x'
go-version: '1.18.x'
- name: Cache Golang Packages
uses: actions/cache@v1
with:

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/SAP/jenkins-library
go 1.17
go 1.18
require (
cloud.google.com/go/storage v1.10.0

304
go.sum

File diff suppressed because it is too large Load Diff