From: Robert Waffen Date: Tue, 28 Aug 2018 15:05:20 +0000 (+0200) Subject: SERVICEDESK-2408: try to use pip module of yamllint X-Git-Tag: v0.1.0~262^2~3^2~2^2~3 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=aa6484069bd61f50810d5d13ee4b9eae76bf3c6d;p=pixelpark%2Fhiera.git SERVICEDESK-2408: try to use pip module of yamllint --- 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 ."' } }