Skip to content

Commit

Permalink
Add separate action for pull requests and Jenkinsfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcornerstone committed Nov 6, 2024
1 parent 47406b9 commit 669274c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
pipeline {
options {
timeout(time: 15, unit: 'MINUTES')
buildDiscarder(logRotator(numToKeepStr:'5'))
disableConcurrentBuilds(abortPrevious: true)
}
agent any
tools {
maven 'apache-maven-latest'
jdk 'temurin-jdk17-latest'
}
stages {
stage('Build') {
steps {
sh """
set -xe
mvn clean verify -DunofficialSuffix=
! test -r ./p2
mv com.wamas.ide.launching.update/target/repository p2
test -r ./p2/.
"""
}
post {
success {
archiveArtifacts artifacts: 'p2/'
}
always {
recordIssues tool: mavenConsole()
}
}
}
}
}

0 comments on commit 669274c

Please sign in to comment.