@@ -7,31 +7,31 @@ metadata:
7
7
spec :
8
8
description : Downloads blobs from definitions.stackrox.io GCloud bucket to be included in Scanner container builds.
9
9
params :
10
- - name : blobs-to-fetch
11
- description : |
12
- List of scanner-data file names to fetch to include in the container build.
13
- An empty list is allowed which results in no-op.
14
- type : array
15
- - name : target-dir
16
- description : Target directory relative to workspace where to save downloaded blobs.
17
- type : string
18
- default : " source"
10
+ - name : blobs-to-fetch
11
+ description : |
12
+ List of scanner-data file names to fetch to include in the container build.
13
+ An empty list is allowed which results in no-op.
14
+ type : array
15
+ - name : target-dir
16
+ description : Target directory relative to workspace where to save downloaded blobs.
17
+ type : string
18
+ default : " source"
19
19
results :
20
20
steps :
21
- - name : fetch-scanner-data
22
- image : registry.access.redhat.com/ubi8/ubi-minimal:latest
23
- # The only functioning way to pass array parameter that I found is through args array.
24
- # Array params have weird limitations, see https://github.com/tektoncd/pipeline/blob/main/docs/tasks.md#substituting-array-parameters
25
- # Attempts to pass this in other places result in webhook errors and pipeline not starting.
26
- args : [ "$(params.blobs-to-fetch[*])" ]
27
- script : |
28
- #!/usr/bin/env bash
29
- set -euo pipefail
30
- exec "$(workspaces.source.path)/source/scripts/konflux/fetch-scanner-data.sh" \
31
- "$(workspaces.source.path)/$(params.target-dir)" \
32
- "$@"
33
- # It should not take long to download blobs otherwise there's something odd going on.
34
- timeout : 10m
21
+ - name : fetch-scanner-data
22
+ image : registry.access.redhat.com/ubi8/ubi-minimal:latest
23
+ # The only functioning way to pass array parameter that I found is through args array.
24
+ # Array params have weird limitations, see https://github.com/tektoncd/pipeline/blob/main/docs/tasks.md#substituting-array-parameters
25
+ # Attempts to pass this in other places result in webhook errors and pipeline not starting.
26
+ args : [ "$(params.blobs-to-fetch[*])" ]
27
+ script : |
28
+ #!/usr/bin/env bash
29
+ set -euo pipefail
30
+ exec "$(workspaces.source.path)/source/scripts/konflux/fetch-scanner-data.sh" \
31
+ "$(workspaces.source.path)/$(params.target-dir)" \
32
+ "$@"
33
+ # It should not take long to download blobs otherwise there's something odd going on.
34
+ timeout : 10m
35
35
workspaces :
36
- - name : source
37
- description : Workspace with the source code.
36
+ - name : source
37
+ description : Workspace with the source code.
0 commit comments