This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.youtube.com/watch?v=tA8XNVPZM2w |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node { | |
checkout scm | |
stage('Build') { | |
def mvnHome = tool 'M3' | |
sh "${mvnHome}/bin/mvn package" | |
} | |
stage('Deploy') { | |
if (env.BRANCH_NAME == 'develop') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<parent> | |
<groupId>net.wasdev.maven.parent</groupId> | |
<artifactId>java8-parent</artifactId> | |
<version>1.4</version> | |
<relativePath></relativePath> | |
</parent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.+" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]}" |