From 2a371bc32044a8e6cb366b8dcdc4fff30d3519cd Mon Sep 17 00:00:00 2001 From: Thanawan Atchariyachanvanit Date: Wed, 23 Aug 2023 16:54:30 -0400 Subject: [PATCH] Change to Use tokenCredentialId for Triggering ml-models-release via Generic Webhook (#240) * Change to release cred Signed-off-by: Thanawan Atchariyachanvanit * Update CHANGELOG.md Signed-off-by: Thanawan Atchariyachanvanit --------- Signed-off-by: Thanawan Atchariyachanvanit --- CHANGELOG.md | 1 + jenkins/ml-models.JenkinsFile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e2c2633..b4f7be91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Enable make_model_config_json to add model description to model config file by @thanawan-atc in ([#203](https://github.com/opensearch-project/opensearch-py-ml/pull/203)) - Correct demo_ml_commons_integration.ipynb by @thanawan-atc in ([#208](https://github.com/opensearch-project/opensearch-py-ml/pull/208)) - Handle the case when the model max length is undefined in tokenizer by @thanawan-atc in ([#219](https://github.com/opensearch-project/opensearch-py-ml/pull/219)) +- Change to use tokenCredentialId for triggering ml-models-release via generic webhook by @thanawan-atc in ([#240](https://github.com/opensearch-project/opensearch-py-ml/pull/240)) ## [1.1.0] diff --git a/jenkins/ml-models.JenkinsFile b/jenkins/ml-models.JenkinsFile index 9b6b2d23..f57fb276 100644 --- a/jenkins/ml-models.JenkinsFile +++ b/jenkins/ml-models.JenkinsFile @@ -41,7 +41,7 @@ pipeline { [key: 'VERSION', value: '$.VERSION'], [key: 'FORMAT', value: '$.FORMAT'] ], - token: 'JENKINS_ML_MODELS_RELEASE_GENERIC_WEBHOOK_TOKEN', + tokenCredentialId: 'jenkins-ml-models-webhook-token', causeString: 'Triggered by GitHub Actions Workflow', printContributedVariables: true, printPostContent: true