d7c6fd8ea8
https://github.com/jenkinsci/google-storage-plugin/pull/12 added an option to allow uploaded objects (such as the build log) to be viewed inline in web browsers, rather than forcing them to be downloaded. This commit adds support for this option. Change-Id: Iae09db42d2c2f69add31f9de7819a22fe1cc1c6e
33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
publishers:
|
|
- google-cloud-storage:
|
|
credentials-id: 'myCredentials'
|
|
uploads:
|
|
- expiring-elements:
|
|
bucket-name: 'gs://myBucket'
|
|
days-to-retain: 7
|
|
- build-log:
|
|
log-name: 'console.log'
|
|
storage-location: 'gs://myBucket'
|
|
share-publicly: 'true'
|
|
upload-for-failed-jobs: 'true'
|
|
show-inline: 'false'
|
|
strip-prefix: 'path/to/'
|
|
- classic:
|
|
file-pattern: 'target/*.war'
|
|
storage-location: 'gs://myBucket'
|
|
strip-prefix: 'path/to/'
|
|
- expiring-elements:
|
|
bucket-name: 'gs://myBucket/artifacts/'
|
|
days-to-retain: 7
|
|
- build-log:
|
|
log-name: 'console.log'
|
|
storage-location: 'gs://myBucket/artifacts/'
|
|
strip-prefix: 'path/to/'
|
|
- classic:
|
|
file-pattern: 'target/*.war'
|
|
storage-location: 'gs://myBucket/artifacts/'
|
|
share-publicly: 'true'
|
|
upload-for-failed-jobs: 'true'
|
|
show-inline: 'true'
|
|
strip-prefix: 'path/to/'
|