[DO-1548] Add pipeline for Python/JavaScript projects analysis (!58)

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>
This commit is contained in:
Andrey Danin
2025-02-04 16:22:47 +03:00
committed by Aleksandr Vodyanov
parent bcba28b360
commit e751d28873
2 changed files with 256 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
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')
}
}
}