]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
SERVICEDESK-2408: try to use pip module of yamllint
authorRobert Waffen <robert.waffen@pixelpark.com>
Tue, 28 Aug 2018 15:05:20 +0000 (17:05 +0200)
committerRobert Waffen <robert.waffen@pixelpark.com>
Tue, 28 Aug 2018 15:05:20 +0000 (17:05 +0200)
Jenkinsfile

index 5de145767e4472e86631bbf389524288e58bdbe6..b715608b658ed42cc8b75a2418cfa6e230608bc5 100644 (file)
@@ -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 ."'
   }
 }