• Matthieu Moy's avatar
    Maven.gitlab-ci: specify absolute path to .m2/ · 8a0408fd
    Matthieu Moy authored
    The existing code is working, but breaks as soon as mvn is run from a
    directory other than the root, e.g.
    
      script:
        - cd subdir && mvn test
    
    To be candidate for caching, .m2 must be within the project directory,
    but we can specify its absolute location using $CI_PROJECT_DIR/.m2/.
    It still works in the base case, and also works in the "cd subdir"
    case above hence won't create surprise when users try to adapt the
    template to their needs.
    8a0408fd
Name
Last commit
Last update
Pages Loading commit data...
.gitlab-ci.yml Loading commit data...
Android.gitlab-ci.yml Loading commit data...
Auto-DevOps.gitlab-ci.yml Loading commit data...
Bash.gitlab-ci.yml Loading commit data...
C++.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
Chef.gitlab-ci.yml Loading commit data...
Clojure.gitlab-ci.yml Loading commit data...
Crystal.gitlab-ci.yml Loading commit data...
Django.gitlab-ci.yml Loading commit data...
Docker.gitlab-ci.yml Loading commit data...
Elixir.gitlab-ci.yml Loading commit data...
Go.gitlab-ci.yml Loading commit data...
Gradle.gitlab-ci.yml Loading commit data...
Grails.gitlab-ci.yml Loading commit data...
Julia.gitlab-ci.yml Loading commit data...
LICENSE Loading commit data...
LaTeX.gitlab-ci.yml Loading commit data...
Laravel.gitlab-ci.yml Loading commit data...
Maven.gitlab-ci.yml Loading commit data...
Mono.gitlab-ci.yml Loading commit data...
Nodejs.gitlab-ci.yml Loading commit data...
OpenShift.gitlab-ci.yml Loading commit data...
PHP.gitlab-ci.yml Loading commit data...
Packer.gitlab-ci.yml Loading commit data...
Python.gitlab-ci.yml Loading commit data...
README.md Loading commit data...
Ruby.gitlab-ci.yml Loading commit data...
Rust.gitlab-ci.yml Loading commit data...
Scala.gitlab-ci.yml Loading commit data...
Swift.gitlab-ci.yml Loading commit data...
Terraform.gitlab-ci.yml Loading commit data...
dotNET.gitlab-ci.yml Loading commit data...
logo.png Loading commit data...
verify_templates.rb Loading commit data...