如何检查管道参数是否为空

时间:2019-11-20 14:44:20

标签: jenkins-pipeline credentials

我有一个包含Credentials参数的管道作业: Pipeline

在管道文件中,我具有以下代码:

stage ("create bundle"){
            steps{
                script{
                        amd_distribution_create_bundle credential_id: params.DISTRIBUTION_CREDENTIAL_ID, distribution_url: params.DISTRIBUTION_URL, gps_credential_id: params.GPG_PASSPHRASE, bundle_name: params.BUNDLE_NAME, bundle_version: BUNDLE_VERSION
                }
            }
        }

在调用常规方法“ amd_distribution_create_bundle”之前,我该如何询问某些管道字段是否为空?

0 个答案:

没有答案
相关问题