summaryrefslogtreecommitdiffstats
path: root/.jenkins.groovy
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2021-06-19 14:00:44 -0600
committerGitHub <noreply@github.com>2021-06-19 14:00:44 -0600
commitb9cfab4a0c3b839b520735e4a183ca83d5e2f124 (patch)
tree03378ead6fe9cc3c0b1c61f3250c425f578d1204 /.jenkins.groovy
parent829ba609de3aace7fd75b3a4f79fcb986f1f5596 (diff)
downloadbcm5719-ortega-b9cfab4a0c3b839b520735e4a183ca83d5e2f124.tar.gz
bcm5719-ortega-b9cfab4a0c3b839b520735e4a183ca83d5e2f124.zip
Build: Cleanup additional static analysis issues. (#231)
Diffstat (limited to '.jenkins.groovy')
-rw-r--r--.jenkins.groovy13
1 files changed, 8 insertions, 5 deletions
diff --git a/.jenkins.groovy b/.jenkins.groovy
index c662870..e5f784a 100644
--- a/.jenkins.groovy
+++ b/.jenkins.groovy
@@ -62,7 +62,8 @@ def build(nodeName, archive = false, archiveCab = false, analyze = true, testArc
cleanWs()
def url = ''
def refspec = '+refs/heads/*:refs/remotes/origin/*'
- try {
+ try
+ {
url = GITHUB_REPO_GIT_URL
}
catch (exc)
@@ -70,12 +71,14 @@ def build(nodeName, archive = false, archiveCab = false, analyze = true, testArc
url = 'git://github.com/meklort/bcm5719-fw.git'
}
def hash = ''
- try {
+ try
+ {
hash = GITHUB_BRANCH_HEAD_SHA
}
catch (exc)
{
- try {
+ try
+ {
hash = GITHUB_PR_HEAD_SHA
refspec = '+refs/pull/*:refs/remotes/origin/pr/*'
}
@@ -105,11 +108,11 @@ def build(nodeName, archive = false, archiveCab = false, analyze = true, testArc
]]
])
- def git_subject = sh (
+ def gitSubject = sh (
script: 'git show -s --format=%s',
returnStdout: true,
).trim()
- currentBuild.description = git_subject
+ currentBuild.description = gitSubject
}
stage('build')
OpenPOWER on IntegriCloud