Skip to content

Instantly share code, notes, and snippets.

View tnsasse's full-sized avatar

Tobias N. Sasse tnsasse

View GitHub Profile
https://www.youtube.com/watch?v=tA8XNVPZM2w
@tnsasse
tnsasse / Jenkinsfile
Last active April 4, 2018 17:28
Jenkinsfile for Gitflow Pipeline: different deployments for dev/release/master branch
node {
checkout scm
stage('Build') {
def mvnHome = tool 'M3'
sh "${mvnHome}/bin/mvn package"
}
stage('Deploy') {
if (env.BRANCH_NAME == 'develop') {
@tnsasse
tnsasse / pom.xml
Created February 23, 2016 13:24
Java8 Liberty POM XML Snippet
<parent>
<groupId>net.wasdev.maven.parent</groupId>
<artifactId>java8-parent</artifactId>
<version>1.4</version>
<relativePath></relativePath>
</parent>
applications:
- path: target/yourapp.war
memory: 512M
instances: 1
domain: mybluemix.net
name: yourapp
host: yourapp
disk_quota: 1024M
env:
JBP_CONFIG_IBMJDK: "version: 1.8.+"
applications:
- path: target/myApp.war
memory: 512M
instances: 1
domain: mybluemix.net
name: myApp
host: myApp
disk_quota: 1024M
env:
JBP_CONFIG_LIBERTY: "app_archive: {features: [servlet-3.1, jaxrs-2.0]}"