diff --git a/Jenkinsfile b/Jenkinsfile index 8832e81..4c8731c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,7 +36,7 @@ node('docker') { stage 'Build' try{ - sh 'bin/build.sh &> debug' + sh 'bin/rebuild.sh &> debug' } catch(error) { def error_details = readFile('./debug'); def message = "BUILD ERROR: There was a problem building ${imagename}:${tag}. \n\n ${error_details}" diff --git a/tests/running.bats b/tests/running.bats index 78075be..2212116 100644 --- a/tests/running.bats +++ b/tests/running.bats @@ -9,9 +9,9 @@ load ../common } @test "Creates root account and database" { - docker exec -i $imagename mysql -u root --password="123321" -e 'show tables' registry + docker exec -i $imagename mysql -u root --password="123321" -h 127.0.0.1 -e 'show tables' registry } @test "Creates user account with password" { - docker exec -i $imagename mysql -u registry_user --password="WJzesbe3poNZ91qIbmR7" -e 'show tables' registry + docker exec -i $imagename mysql -u registry_user --password="WJzesbe3poNZ91qIbmR7" -h 127.0.0.1 -e 'show tables' registry } \ No newline at end of file