/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ pipeline { agent none stages { stage('notify') { steps { script { try { publishNotification( icon: ':white_check_mark:', message: 'Successful Build', extra: 'extra', manifest: '1.2.0/opensearch-1.2.0.yml', credentialsId: 'jenkins-build-notice-webhook' ) }catch (Exception e) { echo 'Exception occurred: ' + e.toString() } } } } } }