Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # These are the default stages.
- # You don't need to explicitly define them.
- # But you could define any stages you want.
- image: maven:latest
- stages:
- - build
- - test
- - deploy
- # This is the name of the job.
- # You can choose it freely.
- maven_build:
- # A job is always executed within a stage.
- # If no stage is set, it defaults to 'test'.
- stage: test
- # Since we require Maven for this job,
- # we can restrict the job to runners with a certain tag.
- # Of course, it is our duty to actually configure a runner
- # with the tag 'maven' and a working maven installation
- tags:
- - myRunner
- # Here you can execute arbitrate terminal commands.
- # If any of the commands returns a non zero exit code the job fails.
- script:
- - echo "Building project with maven"
- - mvn verify
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement