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.
[BSERV-8982] Can't build from source because of private packages in npm-shrinkwrap.json
Workflow | Original: Stash Workflow - Restricted [ 1582546 ] | New: JAC Bug Workflow v3 [ 3136076 ] |
Fix Version/s | New: 4.9.0 [ 62412 ] |
Fix Version/s | New: 4.8.2 [ 62623 ] | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Needs Triage [ 10030 ] | New: Closed [ 6 ] |
Description |
Original:
h3. 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. h2. Workaround h3. Steps to Reproduce # Build Bitbucket Server from the source code h3. Expected Results Bitbucket Server is built successfully h3. Actual Results A number of {{npm ERR! fetch failed}} are returned when building the source code are shown in the console output: {noformat} [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 {noformat} h3.Workaround After unpacking sources delete the file {{bitbucket-parent/npm-shrinkwrap.json}} before building Bitbucket Server. |
New:
h3. 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. h3. Steps to Reproduce # Build Bitbucket Server from the source code h3. Expected Results Bitbucket Server is built successfully h3. Actual Results A number of {{npm ERR! fetch failed}} are returned when building the source code are shown in the console output: {noformat} [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 {noformat} h3.Workaround After unpacking sources delete the file {{bitbucket-parent/npm-shrinkwrap.json}} before building Bitbucket Server. |
Description |
Original:
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.
h2. Workaround After unpacking sources delete the file {{bitbucket-parent/npm-shrinkwrap.json}} before building Bitbucket Server. |
New:
h3. 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. h2. Workaround h3. Steps to Reproduce # Build Bitbucket Server from the source code h3. Expected Results Bitbucket Server is built successfully h3. Actual Results A number of {{npm ERR! fetch failed}} are returned when building the source code are shown in the console output: {noformat} [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 {noformat} h3.Workaround After unpacking sources delete the file {{bitbucket-parent/npm-shrinkwrap.json}} before building Bitbucket Server. |
Affects Version/s | New: 4.8.0 [ 62178 ] |
Description |
New:
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.
h2. Workaround After unpacking sources delete the file {{bitbucket-parent/npm-shrinkwrap.json}} before building Bitbucket Server. |
Affects Version/s | New: 4.8.1 [ 62694 ] |
This will be fixed in Bitbucket Server 4.8.2, the workaround should no longer be required to build from source.