Skip to content
Snippets Groups Projects
Commit 7ee856cf authored by Mohammed Ismail's avatar Mohammed Ismail
Browse files

CI: remove -it from jenkins script

parent 50c2be54
No related branches found
No related tags found
1 merge request!3CI: deployment using docker-compose
......@@ -266,7 +266,7 @@ pipeline {
script {
// Check status on mysql.
try {
sh 'docker exec -it cicd-mysql-svr /bin/bash -c "mysqladmin -u root --password=linux ping" > archives/mysql_status.log 2>&1'
sh 'docker exec cicd-mysql-svr /bin/bash -c "mysqladmin -u root --password=linux ping" > archives/mysql_status.log 2>&1'
sh 'docker inspect --format=\'STATUS: {{.State.Health.Status}}\' cicd-mysql-svr >> archives/mysql_status.log'
} catch (Exception e) {
sh 'echo "STATUS: KO" >> archives/mysql_status.log'
......
......@@ -44,10 +44,11 @@ class HtmlReport():
self.generateFooter()
self.file.close()
if finalStatus:
sys.exit(0)
else:
sys.exit(-1)
try:
if finalStatus:
sys.exit(0)
except:
print("DS-TESTER testing FAILED")
def generateHeader(self):
# HTML Header
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment