Gitlab-ci.yml

I can’t get debugging .gitlab-ci.yml working: I have a very basic .gitlab-ci.yml file containing a build, test, deploy job. When I run my pipelines I have this error : " make: *** No rule to make target ‘build’. Stop. "

gitlab-ci.yml:

    > trigger_build:
>       stage: deploy
>       script:
>         - "curl -X POST -F token=a9afe7bfb0f964cb6a3fae3500d429 -F ref=master http://222.255.135.133/gitlab/api/v4/projects/12/trigger/pipeline"
>         
>         
>     stages: # Ici on déclare toutes nos étapes
>       - build
>       - test
>       - deploy
>       - report
>       - clean
> 
>     job:build: 
>       stage: build # On déclare que ce `job` fait partie de l'étape build
>       script: 
>         - make -f build
> 
> 
>     job:test:
>       stage: test
>       script:
>         - make test
>       when: on_success # s'exécutera uniquement si le job `job:build` passe
>       
> 
>     job:deploy:
>       stage: deploy # On déclare que ce `job` fait partie de l'étape deploy
>       script: make deploy
> 
>     job:report:
>       stage: report
>       script:
>         - make report
>       when: on_failure # s'exécutera si le job `job:build` ou `job:test` ne passe pas
> 
>     job:clean:
>       stage: clean
>       script:
>         - make clean # s'exécutera quoi qu'il se passe
>       when: always

It looks like that error is actually caused by whatever Makefile you are using.

make: *** No rule to make target ‘build’..

Make sure you have a target labeled “build” in your Makefile.

Cheers,
T MOS