$ azure config mode asm
info: Executing command config mode
info: New mode is asm
info: config mode command OK
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
def ec2SecurityGroupId = "sg-cd5696a0" | |
docker.image('cloudbees/java-build-tools').inside { | |
wrap([$class: 'AmazonAwsCliBuildWrapper', credentialsId: 'aws-cleclerc-admin', defaultRegion: 'us-east-1']) { | |
stage "Launch EC2 VM" | |
sh "aws ec2 run-instances --image-id=${amiId} --instance-type=m3.medium --count 1 --key-name alliances-team --security-group-ids ${ec2SecurityGroupId} 2>&1 | tee .aws-run-instance-aws.json" | |
String awsRunInstanceLogs = readFile('.aws-run-instance-aws.json') | |
String instanceId = extractAwsInstanceIdFromAwsJson(awsRunInstanceLogs) | |
stage "Wait for EC2 VM" |
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 { | |
withMaven(mavenSettingsConfig: 'maven-settings-for-game-of-life', mavenInstallation: 'M3', jdk: 'Oracle JDK 8') { | |
git 'https://github.com/cyrille-leclerc/my-spring-boot-app.git' | |
sh "mvn clean package deploy" | |
} | |
} |
docker run -it 62ce0736f1fc bash
python
from selenium import webdriver
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
<?xml version="1.0" encoding="UTF-8"?> | |
<mavenExecution _time="2017-02-02 23:02:52.2"> | |
<context _time="2017-02-02 23:02:52.205"> | |
<systemProperties /> | |
<versionProperties /> | |
<workingDirectory /> | |
<userProperties /> | |
<plexus /> | |
</context> | |
<!-- 2017-02-02 23:02:52.206 - new File(.): --> |
node {
withMaven(globalMavenSettingsConfig: 'my-global-maven-settings', mavenSettingsConfig: 'my-maven-settings') {
git "https://github.com/spring-projects/spring-petclinic.git"
sh "mvn clean package -DskipTests"
}
}
git checkout https://github.com/cyrille-leclerc/multi-module-maven-project.git mvn clean install
node {
withMaven(globalMavenSettingsConfig: 'my-global-maven-settings', mavenSettingsConfig: 'my-maven-settings') {
git "https://github.com/cyrille-leclerc/multi-module-maven-project.git"
sh "mvn -Dcom.example.demo2.Demo2ApplicationTests.fail=true clean install"
}
}
JENKINS-42179 use the JAVA_TOOL_OPTIONS environment variable to pass -Dmaven.ext.class.path
and -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder
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
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00) | |
Maven home: /usr/local/Cellar/maven/3.3.9/libexec | |
Java version: 1.8.0_121, vendor: Oracle Corporation | |
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre | |
Default locale: en_US, platform encoding: UTF-8 | |
OS name: "mac os x", version: "10.12.3", arch: "x86_64", family: "mac" | |
[DEBUG] Created new class realm maven.api | |
[DEBUG] Importing foreign packages into class realm maven.api | |
[DEBUG] Imported: javax.enterprise.inject.* < plexus.core | |
[DEBUG] Imported: javax.enterprise.util.* < plexus.core |