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
- 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 |
---|
This will be fixed in Bitbucket Server 4.8.2, the workaround should no longer be required to build from source.