Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13987

Mixing mvn and java difficult

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            72edab4f4c98 peersreview_proy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: