Skip to content

Commit

Permalink
Add --purge flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Asanka Vithanage committed Nov 8, 2019
1 parent feab276 commit 7139e1f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pipeline {
}

environment {
JOBNAME = "jobnamee"
JOBNAME = "jobname"
}

parameters {
Expand All @@ -18,7 +18,6 @@ pipeline {
stages {
stage('Deploy JMeter Slaves') {
steps {
currentBuild.displayName = "The name."
sh 'echo ======================================'
sh 'helm install --set server.replicaCount=${noOfSlaveNodes},master.replicaCount=0 --name distributed-jmeter-${JOBNAME}-${BUILD_NUMBER} stable/distributed-jmeter'
sh 'sleep 5'
Expand All @@ -39,7 +38,6 @@ pipeline {
stage('Execute Performance Test') {
steps {
sh 'echo ======================================'
sh 'echo ${currentBuild.displayName}'
sh 'echo ${jenkinsSlaveNodes}'
sh 'mvn clean install \"-DjenkinsSlaveNodes=${jenkinsSlaveNodes}\"'
sh 'echo ======================================'
Expand All @@ -56,7 +54,7 @@ pipeline {
stage('Erase JMeter Slaves') {
steps {
sh 'echo ======================================'
sh 'helm delete distributed-jmeter-${JOBNAME}-${BUILD_NUMBER}'
sh 'helm delete --purge distributed-jmeter-${JOBNAME}-${BUILD_NUMBER}'
sh 'sleep 5'
sh 'echo ======================================'
}
Expand Down

0 comments on commit 7139e1f

Please sign in to comment.