From aa6484069bd61f50810d5d13ee4b9eae76bf3c6d Mon Sep 17 00:00:00 2001 From: Robert Waffen Date: Tue, 28 Aug 2018 17:05:20 +0200 Subject: [PATCH] SERVICEDESK-2408: try to use pip module of yamllint --- Jenkinsfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5de14576..b715608b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,11 +2,8 @@ stage('Yaml-Linter') { node("mesos") { deleteDir() git credentialsId: 'd1d6ad59-8d5a-45b4-acfb-64a36d7fd8cd', url: 'git@git.pixelpark.com:puppet/hiera.git', branch: "${BRANCH_NAME}" - sh '/bin/yum install -y yamllint' - sh 'rpm -ql yamllint' - sh 'python --version' - sh 'ls -la /usr/bin/python*' - sh 'yamllint --help' - sh 'bash -c "alias python="python3"; LANG=C.UTF-8 /usr/bin/yamllint -c yamllint.config ."' + sh '/bin/yum install -y pip' + sh 'pip install yamllint' + sh 'bash -c "LANG=C.UTF-8 /usr/bin/yamllint -c yamllint.config ."' } } -- 2.39.5