Skip to content

Instantly share code, notes, and snippets.

View Kubernetes Video
https://www.youtube.com/watch?v=tA8XNVPZM2w
@tnsasse
tnsasse / Jenkinsfile
Last active Apr 4, 2018
Jenkinsfile for Gitflow Pipeline: different deployments for dev/release/master branch
View Jenkinsfile
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 Feb 23, 2016
Java8 Liberty POM XML Snippet
View pom.xml
<parent>
<groupId>net.wasdev.maven.parent</groupId>
<artifactId>java8-parent</artifactId>
<version>1.4</version>
<relativePath></relativePath>
</parent>
View maifest.yml
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.+"
View manifest.yml
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]}"