Advertisement
MatthijsFontys

mvn template short

Feb 17th, 2020
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. # These are the default stages.
  2. # You don't need to explicitly define them.
  3. # But you could define any stages you want.
  4. image: maven:latest
  5.  
  6. stages:
  7. - build
  8. - test
  9. - deploy
  10.  
  11. # This is the name of the job.
  12. # You can choose it freely.
  13. maven_build:
  14. # A job is always executed within a stage.
  15. # If no stage is set, it defaults to 'test'.
  16. stage: test
  17. # Since we require Maven for this job,
  18. # we can restrict the job to runners with a certain tag.
  19. # Of course, it is our duty to actually configure a runner
  20. # with the tag 'maven' and a working maven installation
  21. tags:
  22. - myRunner
  23. # Here you can execute arbitrate terminal commands.
  24. # If any of the commands returns a non zero exit code the job fails.
  25. script:
  26. - echo "Building project with maven"
  27. - mvn verify
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement