管道被卡住,因为阶段"测试应用程序"挂起,$Node可用,但$Node应在"启动VM Azure Machine"阶段启动。。。如何解决这个问题?
pipeline {
agent {label 'master'}
stages {
stage("Start VM Azure Machine"){
steps{
build(job: 'Run_or_Stop_Azure_VM', parameters: [string(name:'start_or_deallocate', value: 'start'), string(name: 'Node', value:"${NODE}")] )
}}
stage("Test app"){
steps {
build(job:'App install', parameters: [string(name: 'Node', value:"${NODE}")] )
}}
stage("Deallocate the machine"){
steps{
build(job: 'Run_or_Stop_Azure_VM', parameters: [string(name:'start_or_deallocate', value: 'stop'), string(name: 'Node', value:"${NODE}")] )
}}
}}
好吧,我已经想通了。更改了:
此项目参数化:节点
到
这个项目是参数化的:字符串。
问题已解决