Node Demo

This article will show you how to compile the NodeJS project in bk-ci.

Prepare materials

detailed steps

  1. Associate the prepared gitlab codebase with bk-ci, please refer to

  2. Create a blank pipeline

  3. Add the Linux build environment to Job2-1 and set the image address to bkci/ci:latest

  4. Add the following three plug-ins: 1. Checkout Gitlab

    1. Shell Scripts

         #!/usr/bin/env bash
         npm run test
    2. Upload artifacts

Last updated