Skip to content

Commit

Permalink
Neues Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
seejaybee committed May 2, 2024
1 parent f6e919f commit 11f4c4e
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions Jenkinsfile_new
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
@Library('jenkins-shared-library@master') _

pipeline {
agent {
kubernetes(agents()
.maven().version('3.9.4-jdk8').profile('small')
.startContainers())
}

options {
skipStagesAfterUnstable()
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '28'))
timeout(time: 1, unit: 'HOURS')
}

triggers {
// at least once a day
cron('H H(0-7) * * *')
// every sixty minutes
pollSCM('H/5 * * * *')
}

stages {
stage("SCM Checkout") {
steps {
deleteDir()
checkout scm
}
}

stage("Maven") {
steps {
container('maven') {
script {
mavenbuild mavenArgs: "dependency:copy-dependencies"
}
}
}
}

stage("Nexus Lifecycle") {
steps {
container('maven') {
nexusPolicyEvaluation iqApplication: 'com.baloise.testing.framework.taf',
iqScanPatterns: [[scanPattern: '**/target/dependency/*.jar']],
iqStage: 'build'
}
}
}
}
}

0 comments on commit 11f4c4e

Please sign in to comment.