-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into thread-safe-load…
…er-2
- Loading branch information
Showing
1,760 changed files
with
177,026 additions
and
64,495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
pipeline { | ||
agent { label 'docs' } | ||
environment { | ||
PYENV_ROOT = "/usr/local/pyenv" | ||
PATH = "$PYENV_ROOT/bin:$PATH" | ||
} | ||
stages { | ||
stage('github-pending') { | ||
steps { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: 'Testing docs...', | ||
status: 'PENDING', | ||
context: "jenkins/pr/docs" | ||
} | ||
} | ||
stage('setup') { | ||
steps { | ||
sh 'eval "$(pyenv init -)"; pyenv install 2.7.14 || echo "We already have this python."; pyenv local 2.7.14; pyenv shell 2.7.14' | ||
sh 'eval "$(pyenv init -)"; pip install sphinx -e .' | ||
} | ||
} | ||
stage('build') { | ||
steps { | ||
sh 'eval "$(pyenv init -)"; make -C doc clean html' | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
cleanWs() | ||
} | ||
success { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: 'The docs job has passed', | ||
status: 'SUCCESS', | ||
context: "jenkins/pr/docs" | ||
} | ||
failure { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: 'The docs job has failed', | ||
status: 'FAILURE', | ||
context: "jenkins/pr/docs" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
pipeline { | ||
agent { label 'kitchen-slave' } | ||
environment { | ||
SALT_KITCHEN_PLATFORMS = "/var/jenkins/workspace/platforms.yml" | ||
SALT_KITCHEN_DRIVER = "/var/jenkins/workspace/driver.yml" | ||
PATH = "/usr/local/rbenv/shims/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin" | ||
RBENV_VERSION = "2.4.2" | ||
TEST_SUITE = "py2" | ||
TEST_PLATFORM = "centos-7" | ||
} | ||
stages { | ||
stage('github-pending') { | ||
steps { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: "running ${TEST_SUITE}-${TEST_PLATFORM}...", | ||
status: 'PENDING', | ||
context: "jenkins/pr/${TEST_SUITE}-${TEST_PLATFORM}" | ||
} | ||
} | ||
stage('setup') { | ||
steps { | ||
sh 'bundle install --with ec2 windows --without opennebula docker' | ||
} | ||
} | ||
stage('run kitchen') { | ||
steps { | ||
script { withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { | ||
sshagent(credentials: ['jenkins-testing-ssh-key']) { | ||
sh 'ssh-add ~/.ssh/jenkins-testing.pem' | ||
sh 'bundle exec kitchen converge $TEST_SUITE-$TEST_PLATFORM || bundle exec kitchen converge $TEST_SUITE-$TEST_PLATFORM' | ||
sh 'bundle exec kitchen verify $TEST_SUITE-$TEST_PLATFORM' | ||
} | ||
}} | ||
} | ||
post { | ||
always { | ||
script { withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { | ||
sshagent(credentials: ['jenkins-testing-ssh-key']) { | ||
sh 'ssh-add ~/.ssh/jenkins-testing.pem' | ||
sh 'bundle exec kitchen destroy $TEST_SUITE-$TEST_PLATFORM' | ||
} | ||
}} | ||
archiveArtifacts artifacts: 'artifacts/xml-unittests-output/*.xml' | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
junit 'artifacts/xml-unittests-output/*.xml' | ||
cleanWs() | ||
} | ||
success { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has passed", | ||
status: 'SUCCESS', | ||
context: "jenkins/pr/${TEST_SUITE}-${TEST_PLATFORM}" | ||
} | ||
failure { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has failed", | ||
status: 'FAILURE', | ||
context: "jenkins/pr/${TEST_SUITE}-${TEST_PLATFORM}" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
pipeline { | ||
agent { label 'kitchen-slave' } | ||
environment { | ||
SALT_KITCHEN_PLATFORMS = "/var/jenkins/workspace/platforms.yml" | ||
SALT_KITCHEN_DRIVER = "/var/jenkins/workspace/driver.yml" | ||
PATH = "/usr/local/rbenv/shims/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin" | ||
RBENV_VERSION = "2.4.2" | ||
TEST_SUITE = "py3" | ||
TEST_PLATFORM = "centos-7" | ||
} | ||
stages { | ||
stage('github-pending') { | ||
steps { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: "running ${TEST_SUITE}-${TEST_PLATFORM}...", | ||
status: 'PENDING', | ||
context: "jenkins/pr/${TEST_SUITE}-${TEST_PLATFORM}" | ||
} | ||
} | ||
stage('setup') { | ||
steps { | ||
sh 'bundle install --with ec2 windows --without opennebula docker' | ||
} | ||
} | ||
stage('run kitchen') { | ||
steps { | ||
script { withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { | ||
sshagent(credentials: ['jenkins-testing-ssh-key']) { | ||
sh 'ssh-add ~/.ssh/jenkins-testing.pem' | ||
sh 'bundle exec kitchen converge $TEST_SUITE-$TEST_PLATFORM || bundle exec kitchen converge $TEST_SUITE-$TEST_PLATFORM' | ||
sh 'bundle exec kitchen verify $TEST_SUITE-$TEST_PLATFORM' | ||
} | ||
}} | ||
} | ||
post { | ||
always { | ||
script { withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { | ||
sshagent(credentials: ['jenkins-testing-ssh-key']) { | ||
sh 'ssh-add ~/.ssh/jenkins-testing.pem' | ||
sh 'bundle exec kitchen destroy $TEST_SUITE-$TEST_PLATFORM' | ||
} | ||
}} | ||
archiveArtifacts artifacts: 'artifacts/xml-unittests-output/*.xml' | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
junit 'artifacts/xml-unittests-output/*.xml' | ||
cleanWs() | ||
} | ||
success { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has passed", | ||
status: 'SUCCESS', | ||
context: "jenkins/pr/${TEST_SUITE}-${TEST_PLATFORM}" | ||
} | ||
failure { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has failed", | ||
status: 'FAILURE', | ||
context: "jenkins/pr/${TEST_SUITE}-${TEST_PLATFORM}" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
pipeline { | ||
agent { label 'kitchen-slave' } | ||
environment { | ||
SALT_KITCHEN_PLATFORMS = "/var/jenkins/workspace/platforms.yml" | ||
SALT_KITCHEN_DRIVER = "/var/jenkins/workspace/driver.yml" | ||
PATH = "/usr/local/rbenv/shims/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin" | ||
RBENV_VERSION = "2.4.2" | ||
TEST_SUITE = "py2" | ||
TEST_PLATFORM = "ubuntu-1604" | ||
} | ||
stages { | ||
stage('github-pending') { | ||
steps { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: "running ${TEST_SUITE}-${TEST_PLATFORM}...", | ||
status: 'PENDING', | ||
context: "jenkins/pr/${TEST_SUITE}-${TEST_PLATFORM}" | ||
} | ||
} | ||
stage('setup') { | ||
steps { | ||
sh 'bundle install --with ec2 windows --without opennebula docker' | ||
} | ||
} | ||
stage('run kitchen') { | ||
steps { | ||
script { withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { | ||
sshagent(credentials: ['jenkins-testing-ssh-key']) { | ||
sh 'ssh-add ~/.ssh/jenkins-testing.pem' | ||
sh 'bundle exec kitchen converge $TEST_SUITE-$TEST_PLATFORM || bundle exec kitchen converge $TEST_SUITE-$TEST_PLATFORM' | ||
sh 'bundle exec kitchen verify $TEST_SUITE-$TEST_PLATFORM' | ||
} | ||
}} | ||
} | ||
post { | ||
always { | ||
script { withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { | ||
sshagent(credentials: ['jenkins-testing-ssh-key']) { | ||
sh 'ssh-add ~/.ssh/jenkins-testing.pem' | ||
sh 'bundle exec kitchen destroy $TEST_SUITE-$TEST_PLATFORM' | ||
} | ||
}} | ||
archiveArtifacts artifacts: 'artifacts/xml-unittests-output/*.xml' | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
junit 'artifacts/xml-unittests-output/*.xml' | ||
cleanWs() | ||
} | ||
success { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has passed", | ||
status: 'SUCCESS', | ||
context: "jenkins/pr/${TEST_SUITE}-${TEST_PLATFORM}" | ||
} | ||
failure { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has failed", | ||
status: 'FAILURE', | ||
context: "jenkins/pr/${TEST_SUITE}-${TEST_PLATFORM}" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
pipeline { | ||
agent { label 'kitchen-slave' } | ||
environment { | ||
SALT_KITCHEN_PLATFORMS = "/var/jenkins/workspace/platforms.yml" | ||
SALT_KITCHEN_DRIVER = "/var/jenkins/workspace/driver.yml" | ||
PATH = "/usr/local/rbenv/shims/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin" | ||
RBENV_VERSION = "2.4.2" | ||
TEST_SUITE = "py3" | ||
TEST_PLATFORM = "ubuntu-1604" | ||
} | ||
stages { | ||
stage('github-pending') { | ||
steps { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: "running ${TEST_SUITE}-${TEST_PLATFORM}...", | ||
status: 'PENDING', | ||
context: "jenkins/pr/${TEST_SUITE}-${TEST_PLATFORM}" | ||
} | ||
} | ||
stage('setup') { | ||
steps { | ||
sh 'bundle install --with ec2 windows --without opennebula docker' | ||
} | ||
} | ||
stage('run kitchen') { | ||
steps { | ||
script { withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { | ||
sshagent(credentials: ['jenkins-testing-ssh-key']) { | ||
sh 'ssh-add ~/.ssh/jenkins-testing.pem' | ||
sh 'bundle exec kitchen converge $TEST_SUITE-$TEST_PLATFORM || bundle exec kitchen converge $TEST_SUITE-$TEST_PLATFORM' | ||
sh 'bundle exec kitchen verify $TEST_SUITE-$TEST_PLATFORM' | ||
} | ||
}} | ||
} | ||
post { | ||
always { | ||
script { withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) { | ||
sshagent(credentials: ['jenkins-testing-ssh-key']) { | ||
sh 'ssh-add ~/.ssh/jenkins-testing.pem' | ||
sh 'bundle exec kitchen destroy $TEST_SUITE-$TEST_PLATFORM' | ||
} | ||
}} | ||
archiveArtifacts artifacts: 'artifacts/xml-unittests-output/*.xml' | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
junit 'artifacts/xml-unittests-output/*.xml' | ||
cleanWs() | ||
} | ||
success { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has passed", | ||
status: 'SUCCESS', | ||
context: "jenkins/pr/${TEST_SUITE}-${TEST_PLATFORM}" | ||
} | ||
failure { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: "The ${TEST_SUITE}-${TEST_PLATFORM} job has failed", | ||
status: 'FAILURE', | ||
context: "jenkins/pr/${TEST_SUITE}-${TEST_PLATFORM}" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
pipeline { | ||
agent { label 'pr-lint-slave' } | ||
environment { | ||
PYENV_ROOT = "/usr/local/pyenv" | ||
PATH = "$PYENV_ROOT/bin:$PATH" | ||
} | ||
stages { | ||
stage('github-pending') { | ||
steps { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: 'Testing lint...', | ||
status: 'PENDING', | ||
context: "jenkins/pr/lint" | ||
} | ||
} | ||
stage('setup') { | ||
steps { | ||
sh 'eval "$(pyenv init -)"; pyenv install 2.7.14 || echo "We already have this python."; pyenv local 2.7.14; pyenv shell 2.7.14' | ||
sh 'eval "$(pyenv init -)"; pip install tox' | ||
} | ||
} | ||
stage('linting') { | ||
failFast false | ||
parallel { | ||
stage('salt linting') { | ||
steps { | ||
sh 'eval "$(pyenv init -)"; tox -e pylint-salt | tee pylint-report.xml' | ||
archiveArtifacts artifacts: 'pylint-report.xml' | ||
} | ||
} | ||
stage('test linting') { | ||
steps { | ||
sh 'eval "$(pyenv init -)"; tox -e pylint-tests | tee pylint-report-tests.xml' | ||
archiveArtifacts artifacts: 'pylint-report-tests.xml' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
step([$class: 'WarningsPublisher', | ||
parserConfigurations: [[ | ||
parserName: 'PyLint', | ||
pattern: 'pylint-report*.xml' | ||
]], | ||
failedTotalAll: '1', | ||
usePreviousBuildAsReference: true | ||
]) | ||
cleanWs() | ||
} | ||
success { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: 'The lint job has passed', | ||
status: 'SUCCESS', | ||
context: "jenkins/pr/lint" | ||
} | ||
failure { | ||
githubNotify credentialsId: 'test-jenkins-credentials', | ||
description: 'The lint job has failed', | ||
status: 'FAILURE', | ||
context: "jenkins/pr/lint" | ||
} | ||
} | ||
} |
Oops, something went wrong.