December 2017
Beginner to intermediate
362 pages
8h 35m
English
The following is the complete combined code that will run inside the docker_pt node:
node('docker_pt') { stage ('Start Tomcat'){ sh '''cd /home/jenkins/tomcat/bin ./startup.sh'''; } stage ('Deploy '){ unstash 'binary' sh 'cp target/hello-0.0.1.war /home/jenkins/tomcat/webapps/'; } stage ('Performance Testing'){ sh '''cd /opt/jmeter/bin/ ./jmeter.sh -n -t $WORKSPACE/src/pt/Hello_World_Test_Plan.jmx -l $WORKSPACE/test_report.jtl'''; step([$class: 'ArtifactArchiver', artifacts: '**/*.jtl']) } stage ('Promote build in Artifactory'){ withCredentials([usernameColonPassword(credentialsId: 'artifactory-account', variable: 'credentials')]) { sh 'curl -u${credentials} -X PUT "http://172.17.8.108:8081/artifactory/api/storage/example-project/ ...Read now
Unlock full access