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

adding deb packaging and deployment of deb file

parent e78b0c9b
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,11 @@ node {
stage('Preparation') {
mvnHome = tool 'Maven 3.5.0'
checkout scm
def pom = readMavenPom file: './pom.xml'
def pName = pom.artifactId
def pVersion = pom.version
def snapshot = pVersion.contains("SNAPSHOT")
}
stage('Build') {
......@@ -11,8 +16,6 @@ node {
sh "'${mvnHome}/bin/mvn' -DskipTests=true -DperformRelease=true -U clean verify deploy"
echo "-- Creating package --"
def pom = readMavenPom file: './pom.xml'
def pVersion = pom.version
sh """
fpm -t deb -a noarch -s dir --name tgauth \
......@@ -31,7 +34,15 @@ node {
--prefix /var/www/tgauth \
-C info.textgrid.middleware.tgauth.rbac .
"""
}
stage('Publish') {
if (snapshot) {
doDebSnapshot(pName, 'target', pVersion, 'trusty')
}
else {
// doDebRelease(pName, 'oaipmh-webapp/target', pVersion, 'trusty')
}
}
}
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