Co-authored-by: Andrey Danin <andrey.danin@avroid.tech> Co-authored-by: Aleksandr Vodyanov <aleksandr.vodyanov@avroid.team> Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/58 Reviewed-by: Aleksandr Vodyanov <aleksandr.vodyanov@avroid.team> Co-authored-by: Andrey Danin <andrey.danin@avroid.team> Co-committed-by: Andrey Danin <andrey.danin@avroid.team>
55 lines
1.6 KiB
Groovy
55 lines
1.6 KiB
Groovy
pipelineJob('DevSecOps/svace_analyze_project') {
|
|
parameters {
|
|
booleanParam {
|
|
description("Check if SonarQube scan is requred (project should have sonar-project.properties file)")
|
|
name('RUN_SONARQUBE_SCAN')
|
|
defaultValue(false)
|
|
}
|
|
string {
|
|
description('Git project (organization/project)')
|
|
name('GIT_PROJECT')
|
|
defaultValue('')
|
|
}
|
|
string {
|
|
description('Git project branch')
|
|
name('BRANCH')
|
|
defaultValue('')
|
|
}
|
|
string {
|
|
description('Git project commmit')
|
|
name('COMMIT_SHA')
|
|
defaultValue('')
|
|
}
|
|
string {
|
|
description('Git project main branch')
|
|
name('MAIN_BRANCH')
|
|
defaultValue('master')
|
|
}
|
|
choice {
|
|
description('Main language for analysis')
|
|
name('LANGUAGE')
|
|
choices('python\njavascript\n')
|
|
}
|
|
string {
|
|
description('Name, version and arch of build. Example: aurora5_armv7hl')
|
|
name('BUILD_PATFORM')
|
|
defaultValue('')
|
|
}
|
|
}
|
|
|
|
definition {
|
|
cpsScm {
|
|
scm {
|
|
git {
|
|
remote {
|
|
url("${JENKINS_GIT_REPOSITORY_URL}/DevOps/jenkins-pipelines.git")
|
|
credentials("${JENKINS_GIT_CREDENTIALS_HTTP}")
|
|
}
|
|
branch('master')
|
|
}
|
|
}
|
|
scriptPath('pipelines/DevSecOps/svace-analyze-project.groovy')
|
|
}
|
|
}
|
|
}
|