Commit 0c98ced9 authored by therealwa3er's avatar therealwa3er
Browse files

add retry job when job fail

parent e8416cdc
Pipeline #62 failed with stages
in 1 minute and 56 seconds
......@@ -19,6 +19,7 @@ stages:
- test
build:
stage: build
script:
- docker ps
# run docker compose
......@@ -26,9 +27,18 @@ build:
test:
stage: test
script:
- docker ps
#run container
- docker-compose -f docker/docker-compose.yml up -d
#run Phpunit test
- docker exec -i -w //var/www/html/alecsia/app docker_alecsia_1 ./../vendor/bin/phpunits
\ No newline at end of file
- docker exec -i -w //var/www/html/alecsia/app docker_alecsia_1 ./../vendor/bin/phpunits
retry:
max: 2
when:
- unknown_failure
- api_failure
- stuck_or_timeout_failure
- runner_system_failure
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