Skip to content
Snippets Groups Projects
Commit a73275d9 authored by Hanna Führ's avatar Hanna Führ
Browse files

Testing pipeline should fail

parent a703f921
No related branches found
No related tags found
1 merge request!1Issue/2031 ip connectivity checker
Pipeline #680825 failed
......@@ -6,19 +6,23 @@
if(!$wait)
{
$tcpclient.Close()
Return "Connection Timeout " + (Get-Date).ToString()
$global:pipelineFails=$true
Return "Connection Timeout at " + (Get-Date).ToString()
}
else
{
$error.Clear()
$tcpclient.EndConnect($iar) | out-Null
if(!$?){Return $error[0]}
if(!$?){
$global:pipelineFails=$true
Return $error[0] + (Get-Date).ToString()
}
$tcpclient.Close()
}
Return "ok"
}
$pipelineFails=$false
$global:pipelineFails=$false
echo "********************************"
echo " Checking IP connectivity "
echo "********************************"
......@@ -27,10 +31,6 @@ $ips = @("132.252.182.129","132.252.182.130", "132.252.182.131", "132.252.182.13
$port ="4443";
foreach($ip in $ips){
echo "$($ip):$port $(testport $ip -p $port)";
if (($(testport $ip -p $port) -ne "ok") -and !$pipelineFails)
{
$pipelineFails=$true
}
}
echo "=== UDE Data ==="
......@@ -38,22 +38,15 @@ $ips = @("132.252.182.1", "132.252.182.2","132.252.182.3","132.252.182.4","132.2
$port ="9021";
foreach($ip in $ips){
echo "$($ip):$port $(testport $ip -p $port)";
if (($(testport $ip -p $port) -ne "ok") -and !$pipelineFails)
{
$pipelineFails=$true
}
}
echo "=== TUDO Management ==="
$ips = @("129.217.149.130","129.217.149.131", "129.217.149.132","129.217.149.133","129.217.149.134","129.217.149.135", "129.217.149.136","129.217.149.137", "129.217.149.138", "129.217.149.160", "129.217.149.161", "129.217.149.162","129.217.149.163", "129.217.149.164", "129.217.149.165", "129.217.149.166", "129.217.149.167", "129.217.149.168")
$ips = @("129.217.149.141","129.217.149.130","129.217.149.131", "129.217.149.132","129.217.149.133","129.217.149.134","129.217.149.135", "129.217.149.136","129.217.149.137", "129.217.149.138", "129.217.149.160", "129.217.149.161", "129.217.149.162","129.217.149.163", "129.217.149.164", "129.217.149.165", "129.217.149.166", "129.217.149.167", "129.217.149.168")
$port ="4443";
foreach($ip in $ips){
echo "$($ip):$port $(testport $ip -p $port)";
if (($(testport $ip -p $port) -ne "ok") -and !$pipelineFails)
{
$pipelineFails=$true
}
}
echo "=== TUDO Data ==="
......@@ -62,9 +55,6 @@ $port ="9021";
foreach($ip in $ips){
echo "$($ip):$port $(testport $ip -p $port)";
if (($(testport $ip -p $port) -ne "ok") -and !$pipelineFails)
{
$pipelineFails=$true
}
}
echo "$pipelineFails"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment