Creating a pipeline for compiling and executing test units

For demonstration purposes, let's try a simple scenario to create a pipeline for compiling source files and executing unit test cases:

  1. Let's use the following script in the Script box:

            echo 'Hello from Pipeline Demo'
            stage 'Compile'
            build 'PetClinic-Compile'
            stage 'Test'
            build 'PetClinic-Test'

    Creating a pipeline for compiling and executing test units

  2. Click on Build Now and go to Console Output to verify the execution process:

    Creating a pipeline for compiling and executing test units

  3. Go to the build job's main page. We can see Stage View here. Remember, we have created two stages: one is Compile and the ...

Get DevOps for Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.