Skip to content

Angular Service Build Failed because of Jenkins Hardware Limits #834

Description

Description

We are adding angular service deployment support to Jazz Platform. For this process, Jazz platform have to take angular build to generate html,css & js files & deploy it to cloud. But before that Jazz have to install/update library packages from node package manager(NPM). This npm install or npm update requires sufficient cpu units and memory to properly build cache and pull packages and install it to the service. This is getting failed sometimes because of the Jenkins container hardware limits.

Observations

  1. During jenkins build website buildpack failed. Reason: npm ERR! nospc ENOSPC: no space left on device
  2. In AWS, the CPUUtilization of the service ecs_cluster_jenkins hits 100% during npm process.

Suggestions

  1. Increase the value of Task CPU which is part of the Jenkins Task Definition (ecs_task_definition_jenkins).
  2. Clear possible temp files & workspace directories of Jenkins at the initial stage of the Jenkins build process.
  3. reduce disk free space threshold & temp free space threshold in the Jenkins master node configuration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions