Details
-
Suggestion
-
Resolution: Fixed
Description
I finally got it to work by using the java image, but I am unhappy about the fact I have no control over the java version being used (always using the newest version may result in bugs), and then manually load my packages. I think the entire thing could be easier and more flexible in terms of version picking.
Here is my pipeline script:
# This is a sample build configuration for Java – Maven. # Check our guides at https://confluence.atlassian.com/x/zd-5Mw for more examples. # Only use spaces to indent your .yml configuration. # ----- # You can specify a custom docker image from Docker Hub as your build environment. image: java pipelines: default: - step: script: - cd PeersReview/ - apt-get update - apt-get --assume-yes install nodejs - apt-get --assume-yes install npm - ln -s /usr/bin/nodejs /usr/bin/node - node -v - npm -v - apt-get --assume-yes install maven - npm install - npm install -g grunt-cli - npm install grunt-npm-install --save-dev - npm install --save-dev grunt-shell - npm install grunt-shell-spawn2 --save-dev - npm install grunt-maven - grunt --gruntfile MavenGruntFile.js - ls -l ROOTProd.war