From ca06f63b7243683100ca336751c09624bb3329dc Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Fri, 26 Jul 2019 16:31:44 -0400 Subject: Add jobconfig.credentials example --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 6f80184..1aa1be0 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,11 @@ if (utils.scm_checkout()) return // these settings to the job's execution. jobconfig = new JobConfig() jobconfig.post_test_summary = true +// 'credentials' example +// To make an environment variable +// NOTE: This requires server-side configuration on the Jenkins instance hosting the builds. +// Contact a Jenkins administrator to add secrets to the credentials store. +jobconfig.credentials = ['SECRET_VALUE_AS_ENV_VAR'] // Config data to share between builds. -- cgit