From ce84f5ac44c7bc16158ffe7cb6be7033a6376517 Mon Sep 17 00:00:00 2001 From: Milosz Nowak Date: Fri, 25 Apr 2025 10:51:18 +0200 Subject: [PATCH] remove Jenkinsfile --- Jenkinsfile | 68 ----------------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index d88033a..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,68 +0,0 @@ -@Library('ecdc-pipeline') -import ecdcpipeline.ContainerBuildNode -import ecdcpipeline.PipelineBuilder - -container_build_nodes = [ - 'centos7': ContainerBuildNode.getDefaultContainerBuildNode('centos7-gcc11') -] - -// Define number of old builds to keep. -num_artifacts_to_keep = '1' - -// Set number of old builds to keep. -properties([[ - $class: 'BuildDiscarderProperty', - strategy: [ - $class: 'LogRotator', - artifactDaysToKeepStr: '', - artifactNumToKeepStr: num_artifacts_to_keep, - daysToKeepStr: '', - numToKeepStr: num_artifacts_to_keep - ] -]]); - -pipeline_builder = new PipelineBuilder(this, container_build_nodes) -pipeline_builder.activateEmailFailureNotifications() - -builders = pipeline_builder.createBuilders { container -> - pipeline_builder.stage("${container.key}: Checkout") { - dir(pipeline_builder.project) { - scm_vars = checkout scm - } - container.copyTo(pipeline_builder.project, pipeline_builder.project) - } // stage - - pipeline_builder.stage("${container.key}: Dependencies") { - container.sh """ - which python - python -m pip install --user -r ${pipeline_builder.project}/requirements-dev.txt - """ - } // stage - - pipeline_builder.stage("${container.key}: Test") { - def test_output = "TestResults.xml" - container.sh """ - cd ${pipeline_builder.project} - pyenv local 3.8 3.9 3.10 3.11 3.12 - pyenv versions - python -m tox -- --junitxml=${test_output} - """ - container.copyFrom("${pipeline_builder.project}/${test_output}", ".") - xunit thresholds: [failed(unstableThreshold: '0')], tools: [JUnit(deleteOutputFiles: true, pattern: '*.xml', skipNoTestFiles: false, stopProcessingIfError: true)] - } // stage -} // createBuilders - -node { - dir("${pipeline_builder.project}") { - scm_vars = checkout scm - } - - try { - parallel builders - } catch (e) { - throw e - } - - // Delete workspace when build is done - cleanWs() -}