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

index 14fef87e0d02874603b5a72dd0a56a96981042b9..5de145767e4472e86631bbf389524288e58bdbe6 100644 (file)
@@ -6,6 +6,7 @@ stage('Yaml-Linter') {
     sh 'rpm -ql yamllint'
     sh 'python --version'
     sh 'ls -la /usr/bin/python*'
-    sh 'bash -c "LANG=C.UTF-8 /usr/bin/yamllint -c yamllint.config ."'
+    sh 'yamllint --help'
+    sh 'bash -c "alias python="python3"; LANG=C.UTF-8 /usr/bin/yamllint -c yamllint.config ."'
   }
 }