Commit 07d3990d authored by joonas lume's avatar joonas lume
Browse files

Fix healthcheck IP, replace it with host2ip command

parent 48c7cc76
......@@ -136,8 +136,9 @@ pipeline {
}
steps {
script {
ELK_HOST = common.host2ip("${NODE}")
ssh_build_cmd = '''
elasticsearchHost="http://${NODE}:9200"
elasticsearchHost="${ELK_HOST}:9200"
echo "Elasticsearch health check on ${HOSTNAME}:"
n=0
until [ "$n" -ge 60 ]
......@@ -150,7 +151,6 @@ pipeline {
echo "Elasticsearch did not start on time. Exiting ..."
exit 1
'''
ELK_HOST = common.host2ip("${NODE}")
sh "$SSH riajenk@$ELK_HOST '$ssh_build_cmd'"
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment