Skip to content

Commit 669274c

Browse files
committed
Add separate action for pull requests and Jenkinsfile.
1 parent 47406b9 commit 669274c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Jenkinsfile

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
pipeline {
2+
options {
3+
timeout(time: 15, unit: 'MINUTES')
4+
buildDiscarder(logRotator(numToKeepStr:'5'))
5+
disableConcurrentBuilds(abortPrevious: true)
6+
}
7+
agent any
8+
tools {
9+
maven 'apache-maven-latest'
10+
jdk 'temurin-jdk17-latest'
11+
}
12+
stages {
13+
stage('Build') {
14+
steps {
15+
sh """
16+
set -xe
17+
mvn clean verify -DunofficialSuffix=
18+
! test -r ./p2
19+
mv com.wamas.ide.launching.update/target/repository p2
20+
test -r ./p2/.
21+
"""
22+
}
23+
post {
24+
success {
25+
archiveArtifacts artifacts: 'p2/'
26+
}
27+
always {
28+
recordIssues tool: mavenConsole()
29+
}
30+
}
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)