Skip to content
Snippets Groups Projects
Commit 66485b24 authored by Homada.Boumedane's avatar Homada.Boumedane
Browse files

chore(dlcm-portal): prepare for a release

prepare for a release
parent 6f7b5425
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@ pipeline{
agent any
options{
timestamps()
ansiColor("xterm")
buildDiscarder(logRotator(numToKeepStr: '5'))
disableConcurrentBuilds()
}
......@@ -15,6 +17,10 @@ pipeline{
CHROME_BIN = '/usr/bin/chromium'
}
parameters {
booleanParam(name: "RELEASE", description: "Build a release from current commit.", defaultValue: false)
}
stages{
stage ('Checkout'){
steps{
......@@ -43,7 +49,7 @@ pipeline{
}
}
stage ('Build & Deploying'){
stage ('Build & Deploying SNAPSHOT'){
environment {
WEB_CONTEXT_ROOT = 'portal'
}
......@@ -54,5 +60,18 @@ pipeline{
}
}
stage("Release") {
when {
allof {
branch "master"
expression { params.RELEASE }
}
}
steps {
sh "mvn -B release:prepare"
sh "mvn -B release:perform"
}
}
}
}
......@@ -7,18 +7,19 @@
<groupId>ch.dlcm</groupId>
<artifactId>dlcm-portal</artifactId>
<packaging>pom</packaging>
<version>1.4.0-SNAPSHOT</version>
<version>1.0.0-SNAPSHOT</version>
<properties>
<!-- Base web context used for the Angular application -->
<web.context.root>undefined</web.context.root>
<!-- Specify environment used to build the Angular application -->
<environment>production</environment>
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<scm>
<connection>scm:git:git@gitlab.unige.ch:DLCM/DLCM-Backend.git</connection>
<connection>git@gitlab.unige.ch:dlcm/ui/dlcm-portal.git</connection>
<tag>HEAD</tag>
</scm>
......@@ -37,6 +38,11 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
......@@ -75,7 +81,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
......
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