Skip to content
Open
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
5 changes: 3 additions & 2 deletions pipelines/libs/github/vars/getBuildInfo.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ def call(String project, Map info)
is_draft = false
}
} else {

info['target'] = env.BRANCH_NAME
info['pull_id'] = 1
info['publishrpm'] = 1
info['publishrpm'] = isThisAPublishBranch(info['target'])
info['install'] = isThisAnInstallBranch(info['target'])
if ("${info['install']}" == '1') {
if ("${info['target']}" == 'main') {
Expand All @@ -71,7 +72,7 @@ def call(String project, Map info)
info['stableinstall'] = 1
}
}
info['covinstall'] = 1
info['covinstall'] = isThisAPublishBranch(info['target'])
}
info['is_draft'] = is_draft
info['covopts'] = getCovOpts(info['target'])
Expand Down
2 changes: 1 addition & 1 deletion pipelines/libs/gitlab/vars/getBuildInfo.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def call(String project, Map info)
info['target'] = env.BRANCH_NAME
info['source'] = env.BRANCH_NAME
info['pull_id'] = 1
info['publishrpm'] = 1
info['publishrpm'] = isThisAPublishBranch(info['target'])
info['install'] = isThisAnInstallBranch(info['target'])
if ("${info['install']}" == '1') {
if ("${info['target']}" == 'main') {
Expand Down
15 changes: 15 additions & 0 deletions pipelines/libs/global/vars/isThisAPublishBranch.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Returns 1 if this branch and coverity scan results need to be published, 0 if not
// Relies on project-specific function getPublishBranches()
def call(String branch)
{
def publish_branches = getPublishBranches()
if (publish_branches.contains(branch)) {
println("RPMs and Coverity scan results will be published for the branch ${branch}")
return 1
}
else {
println("RPMs and Coverity scan results will not be published for the branch ${branch}")
return 0
}

}
5 changes: 3 additions & 2 deletions pipelines/libs/global/vars/runStage.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def doRunStage(String agentName, Map info, Map localinfo)
}

// Run all converted groovy stages first
for (stageinfo in stages) {
stages.each { stageinfo ->
if (running) { // break does weird shit
stagestate['runstage'] = stageinfo.key

Expand Down Expand Up @@ -145,11 +145,12 @@ def doRunStage(String agentName, Map info, Map localinfo)
}
}


// Convert localinfo map into shell variables
def exports = getShellVariables(localinfo)

// Run all the shell stages (will disappear)
for (stageinfo in shell_stages) {
shell_stages.each { stageinfo ->
if (running) { // break does weird shit
stagestate['runstage'] = stageinfo.key

Expand Down
5 changes: 5 additions & 0 deletions pipelines/projects/anvil/vars/getPublishBranches.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main', 'stable-3.1', 'stable-3.2']
}
5 changes: 5 additions & 0 deletions pipelines/projects/booth/vars/getPublishBranches.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main', 'stable-3.1', 'stable-3.2']
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main']
}
2 changes: 1 addition & 1 deletion pipelines/projects/corosync/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pipeline {
parameters {
string(name: 'bootstrap', defaultValue: '0', description: 'Bootstrap the RPM repos')
string(name: 'fullrebuild', defaultValue: '0', description: 'This is a full rebuild - do not publish RPM and do NOT update build code on the nodes')
}
}

stages {
// First check we are allowed to run, then set some params for that run
Expand Down
5 changes: 5 additions & 0 deletions pipelines/projects/corosync/vars/getPublishBranches.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main', 'camelback']
}
5 changes: 5 additions & 0 deletions pipelines/projects/dlm/vars/getPublishBranches.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main']
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches to be installed
def call()
{
return ['main']
}
2 changes: 1 addition & 1 deletion pipelines/projects/gfs2-utils/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pipeline {
parameters {
string(name: 'bootstrap', defaultValue: '0', description: 'Bootstrap the RPM repos')
string(name: 'fullrebuild', defaultValue: '0', description: 'This is a full rebuild - do not publish RPM and do NOT update build code on the nodes')
}
}

stages {
// First check we are allowed to run, then set some params for that run
Expand Down
5 changes: 5 additions & 0 deletions pipelines/projects/gfs2-utils/vars/getPublishBranches.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main']
}
5 changes: 5 additions & 0 deletions pipelines/projects/kernel-ark/vars/getPublishBranches.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['ark-latest', 'for-next', 'next']
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main']
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main']
}
2 changes: 1 addition & 1 deletion pipelines/projects/kronosnet/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pipeline {
parameters {
string(name: 'bootstrap', defaultValue: '0', description: 'Bootstrap the RPM repos')
string(name: 'fullrebuild', defaultValue: '0', description: 'This is a full rebuild - do not publish RPM and do NOT update build code on the nodes')
}
}

stages {
// First check we are allowed to run, then set some params for that run
Expand Down
5 changes: 5 additions & 0 deletions pipelines/projects/kronosnet/vars/getPublishBranches.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main', 'stable1', 'stable1-proposed']
}
5 changes: 5 additions & 0 deletions pipelines/projects/kubesan/vars/getPublishBranches.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main']
}
5 changes: 5 additions & 0 deletions pipelines/projects/libqb/vars/getPublishBranches.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main']
}
5 changes: 5 additions & 0 deletions pipelines/projects/pacemaker/vars/getPublishBranches.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main', '3.0', '2.1']
}
5 changes: 5 additions & 0 deletions pipelines/projects/pcs/vars/getPublishBranches.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main', 'pcs-0.10', 'pcs-0.11']
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main']
}
5 changes: 5 additions & 0 deletions pipelines/projects/sbd/vars/getPublishBranches.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Return list of branches, which will have their RPMs and Coverity scan results published
def call()
{
return ['main']
}