mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
dd0aae6ded
* add Step azureBlobUpload * add azure sdk and unit tests * add Documentation * fix Groovy Wrapper * adopt the requested changes from awsS3Upload * fix lint tests * downgrade azure sdk to go 1.17 * multiple fixes e.g. use of temporary files for tests * fix tests * Update cmd/azureBlobUpload.go Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * Update cmd/azureBlobUpload.go Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * Update documentation/docs/steps/azureBlobUpload.md Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * Update documentation/docs/steps/azureBlobUpload.md Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * Update documentation/docs/steps/azureBlobUpload.md Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * Update documentation/docs/steps/azureBlobUpload.md Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * requested changes * use latest version of azure sdk after update to go 1.18 * change staticcheck from 1.1.0 to 1.2.0 * try to fix lint test by pre-compiling go 1.18 * fix caching for lint test * improve error handling by dividing runner * improve error handling and add validation * multiple naming fixes * add new test for unmarshalling JSON-Structs * Update cmd/azureBlobUpload_test.go Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * Update cmd/azureBlobUpload_test.go Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * Update cmd/azureBlobUpload_test.go Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * fix JSON unmarshall test * Update documentation/docs/steps/azureBlobUpload.md Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * Update cmd/azureBlobUpload_test.go Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * Update cmd/azureBlobUpload.go Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * fix uploadFunc Co-authored-by: Thorsten Duda <thorsten.duda@sap.com> Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
metadata:
|
|
name: azureBlobUpload
|
|
description: "Uploads a specified file or directory into a given Azure Blob Storage."
|
|
longDescription: |
|
|
Uploads a specified file or directory into a given Azure Blob Storage.
|
|
In case a file is uploaded that is already contained in the storage, it will be overwritten with the latest version.
|
|
spec:
|
|
inputs:
|
|
secrets:
|
|
- name: azureCredentialsId
|
|
description: Jenkins 'Secret Text' credentials ID containing the JSON file to authenticate to the Azure Blob Storage
|
|
type: jenkins
|
|
params:
|
|
- name: jsonCredentialsAzure
|
|
description: JSON String Credentials to access Azure Blob Storage
|
|
type: string
|
|
mandatory: true
|
|
scope:
|
|
- PARAMETERS
|
|
secret: true
|
|
resourceRef:
|
|
- name: azureCredentialsId
|
|
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
|