mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Test using different credentials
I also shortened up the linting steps considerably...
This commit is contained in:
parent
21ed5b97ce
commit
d355861c5c
1 changed files with 8 additions and 4 deletions
12
.ci/lint
12
.ci/lint
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue