部分Jenkinsfile(我们使用脚本化管道)是:
properties([parameters([string(defaultValue: "", description: "List of components", name: 'componentsToUpdate'),
string(defaultValue: "refs%2Fheads%2Fproject%2Fintegration", description: "BuildInfo CommitID", name: 'commitId'),
string(defaultValue: "", description: "Tag to release, e.g. 1.1.0-integration", name: 'releaseTag'),
string(defaultValue: "", description: "Forked buildInfo repo. Be aware right commit ID!!!", name: 'fork')]),
[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '7', numToKeepStr: '5']],
disableConcurrentBuilds()])
.
.
.
我希望隐藏“ releaseTag”参数。 “隐藏参数” plugin似乎已过时,我不希望使用它。我指的是this thread,它谈到在某个隐藏标记中传递参数,但是当我指的是Jenkins pipeline documentation parameter语法时,我没有发现任何与隐藏参数有关的东西。
我应该如何进行。
注意:我是Jenkins的初学者:)