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.

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

            Owen made changes -
            Workflow Original: Stash Workflow - Restricted [ 1582546 ] New: JAC Bug Workflow v3 [ 3136076 ]
            Ben Humphreys made changes -
            Fix Version/s New: 4.9.0 [ 62412 ]
            Marcin made changes -
            Fix Version/s New: 4.8.2 [ 62623 ]
            Resolution New: Fixed [ 1 ]
            Status Original: Needs Triage [ 10030 ] New: Closed [ 6 ]

            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.
            Caterina Curti made changes -
            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.
            Caterina Curti made changes -
            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.
            Marcin made changes -
            Affects Version/s New: 4.8.0 [ 62178 ]
            Marcin made changes -
            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.
            Marcin made changes -
            Affects Version/s New: 4.8.1 [ 62694 ]
            Marcin created issue -

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

                Created:
                Updated:
                Resolved: