Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to add extra CVE Jiras not part of current product/version in rhsa-errata-content job #1559

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions job-dsls/jobs/prod/prod_rhsa_errata_content.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pipelineJob("${folderPath}/rhsa-errata-content") {
parameters {
stringParam('PRODUCT_NAME', 'RHPAM', 'Product name')
stringParam('PRODUCT_VERSION', '7.12.0.GA', 'Product target version')
stringParam('ADDITIONAL_JIRAS', '', 'Comma separated list of extra Jiras not part of current product name/version')
}

logRotator {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ node('kie-rhel7-pipeline && !built-in') {
stage('Print variables') {
println "[INFO] PRODUCT_NAME: ${PRODUCT_NAME}"
println "[INFO] PRODUCT_VERSION: ${PRODUCT_VERSION}"
println "[INFO] ADDITIONAL_JIRAS: ${ADDITIONAL_JIRAS}"
println "[INFO] JIRA_SEARCH_URL: ${JIRA_SEARCH_URL}"
println "[INFO] BUGZILLA_URL: ${BUGZILLA_URL}"
println "[INFO] CVE_CLASSIFICATION_URL: ${CVE_CLASSIFICATION_URL}"
}

stage('Print RHSA Errata content') {
withCredentials([string(credentialsId: 'jira-token', variable: 'JIRA_TOKEN')]) {
def inputStream = jira.getCVEsFromRelease(PRODUCT_NAME, PRODUCT_VERSION, JIRA_SEARCH_URL, JIRA_TOKEN)
def inputStream = jira.getCVEsFromRelease(PRODUCT_NAME, PRODUCT_VERSION, JIRA_SEARCH_URL, JIRA_TOKEN, ADDITIONAL_JIRAS)
def cveList = rhsaErrata.getCVEList(inputStream.text, BUGZILLA_URL)
if (cveList.isEmpty()) {
println 'No security Jira was found for the given product and version.'
Expand Down
Loading