Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-8982

Can't build from source because of private packages in npm-shrinkwrap.json

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 4.8.2, 4.9.0
    • 4.8.0, 4.8.1
    • None
    • None

      Summary

      Bitbucket Server 4.8.1 can't be built from source because the source distribution includes the npm-shrinkwrap.json file with references to private Atlassian NPM packages.

      Steps to Reproduce

      1. Build Bitbucket Server from the source code

      Expected Results

      Bitbucket Server is built successfully

      Actual Results

      A number of npm ERR! fetch failed are returned when building the source code are shown in the console output:

      [10:04:28][Step 2/2] [INFO] Running 'npm install' in /var/lib/teamcity/BuildAgents/buildAgent/work/70af3565b66e9e3c/bitbucket-parent/webapp/default/../..
      [10:04:28][Step 2/2] [ERROR] npm ERR! fetch failed https://npm-private.atlassian.io/@atlassian%2feslint-plugin-amd-checks/-/@atlassian%2feslint-plugin-amd-checks-1.0.0.tgz
      

      Workaround

      After unpacking sources delete the file bitbucket-parent/npm-shrinkwrap.json before building Bitbucket Server.

          Form Name

            [BSERV-8982] Can't build from source because of private packages in npm-shrinkwrap.json

            Marcin added a comment -

            This will be fixed in Bitbucket Server 4.8.2, the workaround should no longer be required to build from source.

            Marcin added a comment - This will be fixed in Bitbucket Server 4.8.2, the workaround should no longer be required to build from source.

              Unassigned Unassigned
              mszczepanski Marcin
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: