From 9d6ba3e2471d20a9a555b3a494b56bd811c89e76 Mon Sep 17 00:00:00 2001 From: William Giokas <1007380@gmail.com> Date: Tue, 19 Jun 2018 16:55:05 -0600 Subject: [PATCH] Set jobs to pending when they come in --- .ci/docs | 8 ++++++++ .ci/kitchen-centos7-py2 | 8 ++++++++ .ci/kitchen-centos7-py3 | 8 ++++++++ .ci/kitchen-ubuntu1604-py2 | 8 ++++++++ .ci/kitchen-ubuntu1604-py3 | 8 ++++++++ .ci/lint | 8 ++++++++ 6 files changed, 48 insertions(+) diff --git a/.ci/docs b/.ci/docs index 1af6472bc1..e823c98b3d 100644 --- a/.ci/docs +++ b/.ci/docs @@ -5,6 +5,14 @@ pipeline { 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' diff --git a/.ci/kitchen-centos7-py2 b/.ci/kitchen-centos7-py2 index 978044896d..a9b0632b14 100644 --- a/.ci/kitchen-centos7-py2 +++ b/.ci/kitchen-centos7-py2 @@ -9,6 +9,14 @@ pipeline { 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' diff --git a/.ci/kitchen-centos7-py3 b/.ci/kitchen-centos7-py3 index ddb05947ee..e305ab08ec 100644 --- a/.ci/kitchen-centos7-py3 +++ b/.ci/kitchen-centos7-py3 @@ -9,6 +9,14 @@ pipeline { 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' diff --git a/.ci/kitchen-ubuntu1604-py2 b/.ci/kitchen-ubuntu1604-py2 index c4d9337b94..58818daeca 100644 --- a/.ci/kitchen-ubuntu1604-py2 +++ b/.ci/kitchen-ubuntu1604-py2 @@ -9,6 +9,14 @@ pipeline { 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' diff --git a/.ci/kitchen-ubuntu1604-py3 b/.ci/kitchen-ubuntu1604-py3 index d554804a01..badd12292c 100644 --- a/.ci/kitchen-ubuntu1604-py3 +++ b/.ci/kitchen-ubuntu1604-py3 @@ -9,6 +9,14 @@ pipeline { 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' diff --git a/.ci/lint b/.ci/lint index d08ed45427..a26285cb69 100644 --- a/.ci/lint +++ b/.ci/lint @@ -5,6 +5,14 @@ pipeline { 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'