Skip to content
Snippets Groups Projects
Commit 7f456a50 authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

Rename Jenkinsfile

parent 85936812
No related branches found
No related tags found
No related merge requests found
node {
def mvnHome
stage('Preparation') {
mvnHome = tool 'Maven 3.5.0'
checkout scm
}
stage('Build') {
sh "'${mvnHome}/bin/mvn' -U clean deploy -Pdhrep.deb"
}
stage('Publish') {
def pom = readMavenPom file: 'oaipmh-webapp/pom.xml'
def pName = pom.artifactId
def pVersion = pom.parent.version
def snapshot = pVersion.contains("SNAPSHOT")
if (snapshot) {
doDebSnapshot(pName, 'oaipmh-webapp/target', pVersion)
}
else {
doDebRelease(pName, 'oaipmh-webapp/target', pVersion)
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment