From 518a1737889b0ec70e49d1c238ba60fcc6d67bc5 Mon Sep 17 00:00:00 2001 From: Marcelo Mendes Spessoto Junior Date: Mon, 13 May 2024 08:56:45 -0300 Subject: [PATCH] initial Jenkinsfile Signed-off-by: Marcelo Mendes Spessoto Junior --- Jenkinsfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..9a7827fc8 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,24 @@ +pipeline { + agent any + stages { + + stage('Build'){ + steps{ + sh ''' + apt update -y + apt install -y kcov shunit2 bc sqlite3 bsdmainutils libxml-xpath-perl + ./run_tests.sh prepare + mkdir kcov_out/ + git config --global user.email "kw@kworkflow.net" + git config --global user.name "Kworkflow" + ./run_tests.sh + kcov --include-path=src,kw \ + --exclude-pattern=src/bash_autocomplete.sh,src/help.sh \ + kcov_out/ ./run_tests.sh + ''' + cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'kcov_out/', conditionalCoverageTargets: '70, 0, 0', failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 0, 0', maxNumberOfBuilds: 0, methodCoverageTargets: '80, 0, 0', onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false + } + } + + } +}