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 ."'
}
}