BUGFIX: data.vars was not set
This commit is contained in:
parent
9f15bad914
commit
ca84a53cd0
|
@ -408,9 +408,11 @@ class Job extends Repository
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove secrets from output
|
// Remove secrets from output
|
||||||
foreach($job['data']['vars'] as $key => $var) {
|
if(!empty($job['data']['vars'])) {
|
||||||
if ($var['issecret']) {
|
foreach($job['data']['vars'] as $key => $var) {
|
||||||
$result['output'] = str_replace($var['value'], '{'.$key.'}', $result['output']);
|
if ($var['issecret']) {
|
||||||
|
$result['output'] = str_replace($var['value'], '{'.$key.'}', $result['output']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// saving to database
|
// saving to database
|
||||||
|
|
Loading…
Reference in New Issue