Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Latest commit

 

History

History
63 lines (31 loc) · 1.42 KB

File metadata and controls

63 lines (31 loc) · 1.42 KB

Jenkins CI docs - Execute shell steps

Prerequisites

Config Steps

00 - define new jenkins item

  • on Jenkins home, click on New item

jenkins home screen

  • select freestyle project and define item name cmd - Jenkins CI and Karma jUnit Report

jenkins new item

  • click on OK button

01 - source code management : git

  • select git

  • add repository url: https://github.com/erkobridee/jenkins-ci-and-karma-junit-reporter

jenkins git repo

02 - build

  • on Add Build step combobox select Execute shell

  • define command npm test

jenkins config build

03 - post-build actions

JUnit tests report

  • on Add post-build action combobox select Publish JUnit test result report

  • on Test report XMLs field define tests_out/junit/**/*.xml

jenkins config post action junit

Coverage report

  • on Add post-build action combobox select Publish Cobertura Coverage Report

  • on Cobertura xml report pattern field define tests_out/coverage/**/*.xml

jenkins config post action coverage

04 - save

  • click on save button at page bottom

Running one build

  • on Project home, at left sidebar menu click on Build Now