Skip to content

Commit

Permalink
ci: added advise and extract jenkinsfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
aleyeeey committed Jun 28, 2024
1 parent 50734f0 commit dde5bf4
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .jenkins/advise
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
pipeline {
agent any
tools {
maven 'maven-3.9.6'
jdk 'ZULU8'
}
stages {
stage('Pull artifact from server') {
steps {
sh 'curl -O http://ae-scanner/mirror/'
}
}

stage('Build with extract profile') {
steps {
withMaven(maven: 'maven-3.9.6') {
sh 'mvn -B clean install -Pextract'
}
}
}

stage('Build with advise profile') {
steps {
withMaven(maven: 'maven-3.9.6') {
sh 'mvn -B clean install -Padvise'
}
}
}

stage('Build with report profile') {
steps {
withMaven(maven: 'maven-3.9.6') {
sh 'mvn -B clean install -Preport'
}
}
}
}
}
24 changes: 24 additions & 0 deletions .jenkins/extract
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
pipeline {
agent any
tools {
maven 'maven-3.9.6'
jdk 'ZULU8'
}
stages {
stage('Build with extract profile') {
steps {
withMaven(maven: 'maven-3.9.6') {
sh 'mvn -B clean install -Pextract'
}
}
}

stage('Build with document profile') {
steps {
withMaven(maven: 'maven-3.9.6') {
sh 'mvn -B clean install -Pdocument'
}
}
}
}
}

0 comments on commit dde5bf4

Please sign in to comment.