forked from WebGoat/WebGoat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
484aba1
commit b6eb21d
Showing
1 changed file
with
5 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ node () { | |
stage('Preparation') { // for display purposes | ||
// Get some code from a GitHub repository | ||
// git '[email protected]:CMYanko/struts2-showcase-demo.git' | ||
//checkout scm | ||
checkout scm | ||
|
||
|
||
// Get the Maven tool. | ||
|
@@ -21,7 +21,6 @@ node () { | |
} | ||
stage('Build') { | ||
// Run the maven build | ||
checkout scm | ||
|
||
sh "mvn clean install" | ||
|
||
|
@@ -57,22 +56,17 @@ node () { | |
} | ||
|
||
stage('Deploy Docker Image'){ | ||
sh 'pwd' | ||
sh 'ls -l' | ||
sh 'cd ..' | ||
sh 'pwd' | ||
sh 'ls -l' | ||
sh 'docker-compose up -d' | ||
} | ||
|
||
stage('Done testing?'){ | ||
input 'Done?' | ||
} | ||
|
||
//stage('Kill running Struts container'){ | ||
// sh 'docker ps -a | awk \'{ print $1,$2 }\' | grep struts2-rce | awk \'{print $1 }\' | xargs -I {} docker kill {}' | ||
//sh 'mvn -v' | ||
//} | ||
stage('Kill running WebGoat containers'){ | ||
sh 'docker ps -a | awk \'{ print $1,$2 }\' | jessewebgoat | awk \'{print $1 }\' | xargs -I {} docker kill {}' | ||
sh 'docker ps -a | awk \'{ print $1,$2 }\' | webwolf | awk \'{print $1 }\' | xargs -I {} docker kill {}' | ||
} | ||
|
||
} | ||
|
||
|