/* * 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 { buildMessage(search: 'pass') currentBuild.result = 'SUCCESS' } catch (Exception err) { //https://github.com/jenkinsci/JenkinsPipelineUnit/issues/509 currentBuild.result = 'SUCCESS' } } } } } }