我有一个如下所示的 Jenkinsfile-A,在这个文件中,我需要在执行所有阶段后调用另一个 Jenkinsfile-B。
\n\nJenkinsfile-A
\n\n#!groovy\xe2\x80\x8b\npipeline {\n agent { label "" }\n triggers { pollSCM(\'*/5 * * * *\') }\n stages {\n stage(\'Build Artifact\') {\n steps {\n }\n }\n stage(\'Publish Artifact\') {\n steps {\n }\n }\n }//stages\n post {\n always {\n deleteDir() /* clean up our workspace */\n }\n }\n}//pipeline\ndef jenkinsFile\nstage(\'Loading Jenkinsfile\'){\n\n jenkinsFile = fileLoader.fromGit(\'Jenkinsfile\', \'git@bitbucket.org:org-us-dev/org-cicd-pipelines.git\', \'master\', \'org-service-user\', \'ORG\')\n}\njenkinsFile.start()\nRun Code Online (Sandbox Code Playgroud)\n\nJenkinsfile-B
\n\n#!groovy\nvoid Download_Repositories(){\n}\nvoid SonarQube_Analysis(){\n}\nvoid Deploy_And_Test(){\n}\nvoid Prepare_Sonar_Scanner(){\n}\nvoid Publish_Artifact(){\n}\nvoid Host_Verification(){\n}\npipeline {\n agent { label \'\' }\n// triggers { pollSCM(\'*/5 * …Run Code Online (Sandbox Code Playgroud) groovy jenkins-groovy jenkins-pipeline jenkins-declarative-pipeline