We don't show the secrets field in job.sh file, so delete secrets field when job2sh.
Signed-off-by: Cao Xueliang caoxl78320@163.com --- lib/job2sh.rb | 1 + 1 file changed, 1 insertion(+)
diff --git a/lib/job2sh.rb b/lib/job2sh.rb index 7f9cf562f..82ec7d249 100755 --- a/lib/job2sh.rb +++ b/lib/job2sh.rb @@ -318,6 +318,7 @@ class Job2sh < Job unless job job = (@jobx || @job).clone # a shallow copy so that delete_if won't impact @job job.delete_if { |key, val| parse_one([], key, val, :PASS_EXPORT_ENV) } + job.delete_if { |key, val| key == "secrets" } end
@cur_func = :run_job