File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 4
4
VERSION :
5
5
description : specify client version
6
6
required : false
7
- default : 0.0.70
7
+ default : 0.0.71
8
8
CF_API_KEY :
9
9
description : " Codefresh API KEY"
10
10
required : true
@@ -156,7 +156,7 @@ runs:
156
156
echo "CF_WORKFLOW_URL=$CF_WORKFLOW_URL" >> cf_env
157
157
echo "CF_GIT_PROVIDER=${CF_GIT_PROVIDER}" >> cf_env
158
158
# EXTERNAL_ENV=$(jq -n 'env'|base64)
159
- # echo "EXTERNAL_ENV=$EXTERNAL_ENV">cf_env
159
+ echo "EXTERNAL_ENV=$EXTERNAL_ENV"> >cf_env
160
160
161
161
docker run --env-file=cf_env "quay.io/codefresh/codefresh-report-image:$VERSION"
162
162
Original file line number Diff line number Diff line change 1
1
name : csdp-report-image
2
- version : 0.0.70
2
+ version : 0.0.71
3
3
Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ import { atob } from 'buffer'
6
6
*/
7
7
export function validate ( payload : Record < string , string | undefined > ) : Record < string , string | undefined > {
8
8
if ( payload [ 'EXTERNAL_ENV' ] ) {
9
- payload = JSON . parse ( atob ( payload [ 'EXTERNAL_ENV' ] ) )
9
+ try {
10
+ payload = JSON . parse ( atob ( payload [ 'EXTERNAL_ENV' ] ) )
11
+ } catch ( error ) {
12
+ console . log ( `could not handle ${ JSON . stringify ( payload [ 'EXTERNAL_ENV' ] ) } , Error ${ JSON . stringify ( error ) } ` )
13
+ }
10
14
}
11
15
const filtered = filterEnvVarPattern ( payload )
12
16
const messages : string [ ] = [ ]
You can’t perform that action at this time.
0 commit comments