in deploy-templates/JobProvisionerDefault.groovy [224:252]
def createReleasePipeline(pipelineName, codebaseName, codebaseStages, repository, credId,
gitServerCrName, gitServerCrVersion, jiraIntegrationEnabled, edpLibraryStagesVersion, edpLibraryPipelinesVersion) {
pipelineJob("${codebaseName}/${pipelineName}") {
logRotator {
numToKeep(14)
daysToKeep(30)
}
definition {
cps {
script("@Library([\"edp-library-stages@${edpLibraryStagesVersion}\", \"edp-library-pipelines@${edpLibraryPipelinesVersion}\"]) _ \nCreateRelease()")
sandbox(true)
parameters {
stringParam("STAGES", "${codebaseStages}", "")
if (pipelineName.contains("Create-release") || pipelineName.contains("Delete-release")) {
stringParam("JIRA_INTEGRATION_ENABLED", "${jiraIntegrationEnabled}", "Is Jira integration enabled")
stringParam("GERRIT_PROJECT", "${codebaseName}", "")
stringParam("RELEASE_NAME", "", "Name of the release(branch to be created)")
stringParam("COMMIT_ID", "", "Commit ID that will be used to create branch from for new release. If empty, HEAD of master will be used")
stringParam("GIT_SERVER_CR_NAME", "${gitServerCrName}", "Name of Git Server CR to generate link to Git server")
stringParam("GIT_SERVER_CR_VERSION", "${gitServerCrVersion}", "Version of GitServer CR Resource")
stringParam("REPOSITORY_PATH", "${repository}", "Full repository path")
}
if (pipelineName.contains("Delete-release"))
stringParam("BRANCH", "${watchBranch}", "Branch to build artifact from")
}
}
}
}
}