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

Correct Jenkinsfile

parent 04306e6f
No related branches found
No related tags found
No related merge requests found
...@@ -7,20 +7,20 @@ node { ...@@ -7,20 +7,20 @@ node {
} }
stage('Build') { stage('Build') {
sh "'${mvnHome}/bin/mvn' -U clean verify deploy -Pdhrep.deb" sh "'${mvnHome}/bin/mvn' -U clean verify -Ptextgrid.deb"
} }
stage('Publish') { stage('Publish') {
def pom = readMavenPom file: 'oaipmh-webapp/pom.xml' def pom = readMavenPom file: 'pom.xml'
def pName = pom.artifactId def pName = pom.artifactId
def pVersion = pom.parent.version def pVersion = pom.parent.version
def snapshot = pVersion.contains("SNAPSHOT") def snapshot = pVersion.contains("SNAPSHOT")
if (snapshot) { if (snapshot) {
doDebSnapshot(pName, 'oaipmh-webapp/target', pVersion) doDebSnapshot(pName, 'target', pVersion)
} }
else { else {
doDebRelease(pName, 'oaipmh-webapp/target', pVersion) doDebRelease(pName, '/target', pVersion)
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment