Skip to content

Commit

Permalink
Reduce CI checks/jenkins load (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkobiela authored Jan 7, 2024
1 parent 351ce26 commit cfdf977
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* groovylint-disable DuplicateStringLiteral, MethodReturnTypeRequired, NestedBlockDepth, NoDef */
Map parallelStages = [:]
pythonsArray = ['3.8', '3.9', '3.10', '3.11', '3.12']
testStage = 'jobScrapperCI/run_tests'
runStage = 'jobScrapperCI/run_scrapper'
runAndTestStage = 'jobScrapperCI/run_and_test'
banditStage = 'jobScrapperCI/run_bandit'

def generateStage(String job, String url, String commit, String python) {
Expand Down Expand Up @@ -38,10 +37,8 @@ pipeline {
"Branch: <b>${env.BRANCH_NAME}</b>"

pythonsArray.each { py ->
parallelStages.put("${runStage}_python${py}",
generateStage(runStage, env.GIT_URL, env.GIT_COMMIT, py))
parallelStages.put("${testStage}_python${py}",
generateStage(testStage, env.GIT_URL, env.GIT_COMMIT, py))
parallelStages.put("${runAndTestStage}_python${py}",
generateStage(runAndTestStage, env.GIT_URL, env.GIT_COMMIT, py))
}
parallelStages.put("${banditStage}",
generateStage(banditStage, env.GIT_URL, env.GIT_COMMIT, 'None'))
Expand Down

0 comments on commit cfdf977

Please sign in to comment.