Skip to content

Commit

Permalink
Remove docker check for windows gradle check (#28)
Browse files Browse the repository at this point in the history
* Remove docker check for windows gradle check

Signed-off-by: Peter Zhu <[email protected]>

* add test results

Signed-off-by: Peter Zhu <[email protected]>

Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Nov 5, 2022
1 parent cd10eb5 commit 8c4a662
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
18 changes: 10 additions & 8 deletions tests/jenkins/jobs/RunGradleCheck_Jenkinsfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,17 @@
./gradlew --stop
rm -rf ~/.gradle

echo "Check existing dockercontainer"
docker ps -a
docker stop `docker ps -qa` > /dev/null 2>&1 || echo
docker rm `docker ps -qa` > /dev/null 2>&1 || echo
echo "Stop existing dockercontainer"
docker ps -a
if ! (uname -s | grep -i NT); then
echo "Check existing dockercontainer"
docker ps -a
docker stop `docker ps -qa` > /dev/null 2>&1 || echo
docker rm `docker ps -qa` > /dev/null 2>&1 || echo
echo "Stop existing dockercontainer"
docker ps -a

echo "Check docker-compose version"
docker-compose version
echo "Check docker-compose version"
docker-compose version
fi

echo "Check existing processes"
ps -ef | grep [o]pensearch | wc -l
Expand Down
20 changes: 11 additions & 9 deletions vars/runGradleCheck.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,17 @@ void call(Map args = [:]) {
./gradlew --stop
rm -rf ~/.gradle
echo "Check existing dockercontainer"
docker ps -a
docker stop `docker ps -qa` > /dev/null 2>&1 || echo
docker rm `docker ps -qa` > /dev/null 2>&1 || echo
echo "Stop existing dockercontainer"
docker ps -a
echo "Check docker-compose version"
docker-compose version
if ! (uname -s | grep -i NT); then
echo "Check existing dockercontainer"
docker ps -a
docker stop `docker ps -qa` > /dev/null 2>&1 || echo
docker rm `docker ps -qa` > /dev/null 2>&1 || echo
echo "Stop existing dockercontainer"
docker ps -a
echo "Check docker-compose version"
docker-compose version
fi
echo "Check existing processes"
ps -ef | grep [o]pensearch | wc -l
Expand Down

0 comments on commit 8c4a662

Please sign in to comment.