mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 14:53:44 +00:00
Set up update-jenkins-jobs on PR Jenkins.
This commit is contained in:
parent
ea579d5fab
commit
02fb7b89c3
@ -0,0 +1,14 @@
|
|||||||
|
- job:
|
||||||
|
name: kubernetes-update-jenkins-jobs
|
||||||
|
description: 'Update Jenkins jobs based on configs in https://github.com/kubernetes/kubernetes/tree/master/hack/jenkins/job-configs. Test owner: spxtr.'
|
||||||
|
triggers:
|
||||||
|
- timed: 'H/15 * * * *'
|
||||||
|
builders:
|
||||||
|
- shell: |
|
||||||
|
curl -fsS https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/update-jobs.sh > update-jobs.sh
|
||||||
|
chmod +x update-jobs.sh
|
||||||
|
./update-jobs.sh "hack/jenkins/job-configs:hack/jenkins/job-configs/kubernetes-jenkins-pull"
|
||||||
|
publishers:
|
||||||
|
- email-ext:
|
||||||
|
recipients: spxtr@google.com
|
||||||
|
|
@ -4,7 +4,10 @@
|
|||||||
triggers:
|
triggers:
|
||||||
- timed: 'H/15 * * * *'
|
- timed: 'H/15 * * * *'
|
||||||
builders:
|
builders:
|
||||||
- shell: 'curl -fsS https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/update-jobs.sh | /bin/bash -'
|
- shell: |
|
||||||
|
curl -fsS https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/update-jobs.sh > update-jobs.sh
|
||||||
|
chmod +x update-jobs.sh
|
||||||
|
./update-jobs.sh "hack/jenkins/job-configs:hack/jenkins/job-configs/kubernetes-jenkins"
|
||||||
publishers:
|
publishers:
|
||||||
- email-ext:
|
- email-ext:
|
||||||
recipients: spxtr@google.com
|
recipients: spxtr@google.com
|
@ -14,13 +14,14 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
# Update all Jenkins jobs in a folder. If no folder is provided in $1,
|
# Update all Jenkins jobs in a folder specified in $1. It can be the union of
|
||||||
# defaults to hack/jenkins/job-configs.
|
# multiple folders separated with a colon, like with the PATH variable.
|
||||||
|
|
||||||
if [[ $# -eq 1 ]]; then
|
if [[ $# -eq 1 ]]; then
|
||||||
config_dir=$1
|
config_dir=$1
|
||||||
else
|
else
|
||||||
config_dir="hack/jenkins/job-configs"
|
echo "Usage: $0 <dir>" >&2
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run the container if it isn't present.
|
# Run the container if it isn't present.
|
||||||
|
Loading…
Reference in New Issue
Block a user