From 4bd3945b6b96e0b9b13b6b2dd0b54d5ea7659c24 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 17 Feb 2021 13:37:26 +0100 Subject: [PATCH] Jenkinsfile: add editorconfig checker --- Jenkinsfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c532fb5..8c37603 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,15 @@ pipeline { agent any stages { + stage('editorconfig-checker') { + steps { + sh """ + wget -Oec-linux-amd64.tar.gz https://github.com/editorconfig-checker/editorconfig-checker/releases/latest/download/ec-linux-amd64.tar.gz + tar -xzf ec-linux-amd64.tar.gz && rm ec-linux-amd64.tar.gz + bin/ec-linux-amd64 -no-color -exclude '^bin/' + """ + } + } stage('install_requirements') { steps { sh """ @@ -43,7 +52,10 @@ pipeline { } post { always { - sh 'rm -rf venv' + sh """ + rm -rf venv + rm -rf bin + """ } } }