問題タブ [ucd]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
0 に答える
25 参照

jenkins - jenkins コードとしてスクリプト化されたパイプライン - 関数から終了ステータスを取得する

スクリプト化されたパイプラインで関数の終了ステータスを取得する方法

次のようなことができますか

def returnstatus=deploy_To_Ucd(名前) ??? . UCDeployPublisher が正常に実行されたかどうかを確認したい

groovy ファイル呼び出し関数

deploy_To_Ucd(名前)

呼び出された関数:

#!/ビン/グルーヴィー

def call(String envName) {

step([$class: 'UCDeployPublisher', siteName: 'local', deploy: [ $class: 'com.urbancode.jenkins.plugins.ucdeploy.DeployHelper$DeployBlock', deployApp: APPLICATION_NAME ,

}