diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py
index ea22251b4..c1b721dad 100644
--- a/jenkins_jobs/modules/publishers.py
+++ b/jenkins_jobs/modules/publishers.py
@@ -5291,6 +5291,9 @@ def google_cloud_storage(parser, xml_parent, data):
share uploaded artifacts with everyone (default false)
* **upload-for-failed-jobs** (`bool`) whether to upload
artifacts even if the build fails (default false)
+ * **show-inline** (`bool`) whether to show uploaded build
+ log inline in web browsers, rather than forcing it to be
+ downloaded (default true)
* **strip-prefix** (`str`) strip this prefix off the
file names (default: not set)
@@ -5304,6 +5307,9 @@ def google_cloud_storage(parser, xml_parent, data):
share uploaded artifacts with everyone (default false)
* **upload-for-failed-jobs** (`bool`) whether to upload
artifacts even if the build fails (default false)
+ * **show-inline** (`bool`) whether to show uploaded
+ artifacts inline in web browsers, rather than forcing
+ them to be downloaded (default false)
* **strip-prefix** (`str`) strip this prefix off the
file names (default: not set)
@@ -5366,6 +5372,9 @@ def google_cloud_storage(parser, xml_parent, data):
XML.SubElement(xml_element, 'forFailedJobs').text = str(
properties.get('upload-for-failed-jobs', False)).lower()
+ XML.SubElement(xml_element, 'showInline').text = str(
+ properties.get('show-inline', True)).lower()
+
XML.SubElement(xml_element, 'pathPrefix').text = str(
properties.get('strip-prefix', ''))
@@ -5399,6 +5408,9 @@ def google_cloud_storage(parser, xml_parent, data):
XML.SubElement(xml_element, 'forFailedJobs').text = str(
properties.get('upload-for-failed-jobs', False)).lower()
+ XML.SubElement(xml_element, 'showInline').text = str(
+ properties.get('show-inline', False)).lower()
+
XML.SubElement(xml_element, 'pathPrefix').text = str(
properties.get('strip-prefix', ''))
diff --git a/tests/publishers/fixtures/google_cloud_storage002.xml b/tests/publishers/fixtures/google_cloud_storage002.xml
index e627b2087..41cd498c6 100644
--- a/tests/publishers/fixtures/google_cloud_storage002.xml
+++ b/tests/publishers/fixtures/google_cloud_storage002.xml
@@ -15,6 +15,7 @@
gs://myBucket
true
true
+ true
console.log
@@ -23,6 +24,7 @@
gs://myBucket
false
true
+ false
target/*.war
@@ -31,6 +33,7 @@
gs://myBucket/artifacts/
true
false
+ false
path/to/
**/build/*.iso
diff --git a/tests/publishers/fixtures/google_cloud_storage003.xml b/tests/publishers/fixtures/google_cloud_storage003.xml
index c5beecb6b..41040839b 100644
--- a/tests/publishers/fixtures/google_cloud_storage003.xml
+++ b/tests/publishers/fixtures/google_cloud_storage003.xml
@@ -15,6 +15,7 @@
gs://myBucket
true
true
+ false
path/to/
console.log
@@ -23,6 +24,7 @@
gs://myBucket
false
false
+ false
path/to/
target/*.war
@@ -38,6 +40,7 @@
gs://myBucket/artifacts/
false
false
+ true
path/to/
console.log
@@ -46,6 +49,7 @@
gs://myBucket/artifacts/
true
true
+ true
path/to/
target/*.war
diff --git a/tests/publishers/fixtures/google_cloud_storage003.yaml b/tests/publishers/fixtures/google_cloud_storage003.yaml
index de2baedc3..62c75e7b7 100644
--- a/tests/publishers/fixtures/google_cloud_storage003.yaml
+++ b/tests/publishers/fixtures/google_cloud_storage003.yaml
@@ -10,6 +10,7 @@ publishers:
storage-location: 'gs://myBucket'
share-publicly: 'true'
upload-for-failed-jobs: 'true'
+ show-inline: 'false'
strip-prefix: 'path/to/'
- classic:
file-pattern: 'target/*.war'
@@ -27,4 +28,5 @@ publishers:
storage-location: 'gs://myBucket/artifacts/'
share-publicly: 'true'
upload-for-failed-jobs: 'true'
+ show-inline: 'true'
strip-prefix: 'path/to/'