Test using different credentials

I also shortened up the linting steps considerably...
This commit is contained in:
William Giokas 2018-06-19 14:27:41 -06:00 committed by rallytime
parent 21ed5b97ce
commit d355861c5c
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -17,13 +17,15 @@ pipeline {
parallel {
stage('salt linting') {
steps {
sh 'eval "$(pyenv init -)"; pylint --rcfile=.testing.pylintrc --disable=W1307,str-format-in-logging setup.py salt/ | tee pylint-report.xml'
// sh 'eval "$(pyenv init -)"; pylint --rcfile=.testing.pylintrc --disable=W1307,str-format-in-logging setup.py salt/ | tee pylint-report.xml'
sh "echo foo > pylint-reports.xml"
archiveArtifacts artifacts: 'pylint-report.xml'
}
}
stage('test linting') {
steps {
sh 'eval "$(pyenv init -)"; pylint --rcfile=.testing.pylintrc --disable=W0232,E1002,W1307,str-format-in-logging tests/ | tee pylint-report-tests.xml'
// sh 'eval "$(pyenv init -)"; pylint --rcfile=.testing.pylintrc --disable=W0232,E1002,W1307,str-format-in-logging tests/ | tee pylint-report-tests.xml'
sh "echo bar > pylint-reports-tests.xml"
archiveArtifacts artifacts: 'pylint-report-tests.xml'
}
}
@ -32,10 +34,12 @@ pipeline {
}
post {
success {
githubNotify description: "The lint job has passed", status: "SUCCESS"
// githubNotify description: "The lint job has passed", status: "SUCCESS",
githubNotify credentialsId: 'test-jenkins-credentials', description: 'test', status: 'SUCCESS'
}
failure {
githubNotify description: "The lint job has failed", status: "FAILURE"
// githubNotify description: "The lint job has failed", status: "FAILURE"
githubNotify credentialsId: 'test-jenkins-credentials', description: 'test', status: 'FAILURE'
}
}
}