mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
6714794066
* 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>
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
metadata:
|
|
name: awsS3Upload
|
|
description: "Uploads a specified file or directory into a given AWS S3 Bucket"
|
|
longDescription: |
|
|
Uploads a specified file or directory as S3 Objects into a given AWS S3 Bucket.
|
|
In case a file is uploaded that is already contained in the S3 bucket, it will be overwritten with the latest version.
|
|
spec:
|
|
inputs:
|
|
secrets:
|
|
- name: awsCredentialsId
|
|
description: Jenkins 'Secret Text' credentials ID containing the JSON file to authenticate to the AWS S3 Bucket
|
|
type: jenkins
|
|
params:
|
|
- name: jsonCredentialsAWS
|
|
description: JSON String Credentials to access AWS S3 Bucket
|
|
type: string
|
|
mandatory: true
|
|
scope:
|
|
- PARAMETERS
|
|
secret: true
|
|
resourceRef:
|
|
- name: awsCredentialsId
|
|
type: secret
|
|
- name: filePath
|
|
resourceRef:
|
|
- name: commonPipelineEnvironment
|
|
param: mtarFilePath
|
|
type: string
|
|
mandatory: true
|
|
description: "Name/Path of the file which should be uploaded"
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|