mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
SonarQube: Remove check for non-productive branch (#1998)
This commit is contained in:
parent
712d18ce0e
commit
dc9a6d7b2b
@ -52,8 +52,6 @@ void call(Map parameters = [:]) {
|
||||
environment.add("PIPER_changeId=${env.CHANGE_ID}")
|
||||
environment.add("PIPER_changeBranch=${env.CHANGE_BRANCH}")
|
||||
environment.add("PIPER_changeTarget=${env.CHANGE_TARGET}")
|
||||
} else if (!isProductiveBranch(script) && env.BRANCH_NAME) {
|
||||
environment.add("PIPER_branchName=${env.BRANCH_NAME}")
|
||||
}
|
||||
try {
|
||||
// load certificates into cacerts file
|
||||
@ -100,11 +98,6 @@ private Boolean isPullRequest(){
|
||||
return env.CHANGE_ID
|
||||
}
|
||||
|
||||
private Boolean isProductiveBranch(Script script) {
|
||||
def productiveBranch = script.commonPipelineEnvironment?.getStepConfiguration('', '')?.productiveBranch
|
||||
return env.BRANCH_NAME == productiveBranch
|
||||
}
|
||||
|
||||
private void loadCertificates(Map config) {
|
||||
String certificateFolder = '.certificates/'
|
||||
List wgetOptions = [
|
||||
|
Loading…
Reference in New Issue
Block a user