From 760031103ea4847174077d329180adebea6b490d Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 24 Aug 2021 14:16:57 +0100 Subject: [PATCH] build: Update CI infrastructure for "master" -> "main" rename Also remove obsolete Travis build status from the README.md. Signed-off-by: Rob Bradford --- .github/workflows/build.yaml | 2 +- .github/workflows/docker-image.yaml | 2 +- CONTRIBUTING.md | 2 +- Jenkinsfile | 14 +++++++------- README.md | 2 -- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 57a842e39..8c03f17ae 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,7 +31,7 @@ jobs: - name: Debug Check (default features) run: | - git rev-list origin/master..$GITHUB_SHA | xargs -t -I % sh -c 'git checkout %; cargo check --all --target=${{ matrix.target }}' + git rev-list origin/main..$GITHUB_SHA | xargs -t -I % sh -c 'git checkout %; cargo check --all --target=${{ matrix.target }}' git checkout $GITHUB_SHA - name: Build (acpi,kvm) diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yaml index a26ec75f1..e6ea6d920 100644 --- a/.github/workflows/docker-image.yaml +++ b/.github/workflows/docker-image.yaml @@ -2,7 +2,7 @@ name: Cloud-Hypervisor's Docker image update on: push: - branches: master + branches: main paths: resources/Dockerfile jobs: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3b834a1b2..d8c46f20b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -55,7 +55,7 @@ you want to merge your changes to `cloud-hypervisor`: into your github organization. 2. Within your fork, create a branch for your contribution. 3. [Create a pull request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) - against the master branch of the Cloud Hypervisor repository. + against the main branch of the Cloud Hypervisor repository. 4. Add reviewers to your pull request and then work with your reviewers to address any comments and obtain minimum of 2 [maintainers](MAINTAINERS.md) approvals. To update your pull request amend existing commits whenever applicable and diff --git a/Jenkinsfile b/Jenkinsfile index b09cfc45d..6095f39a3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,7 +14,7 @@ pipeline{ } } stage ('Cancel older builds') { - when { not { branch 'master' } } + when { not { branch 'main' } } steps { cancelPreviousBuilds() } @@ -110,7 +110,7 @@ pipeline{ agent { node { label 'bionic-sgx' } } when { beforeAgent true - branch 'master' + branch 'main' } stages { stage ('Checkout') { @@ -146,7 +146,7 @@ pipeline{ agent { node { label 'bionic-vfio' } } when { beforeAgent true - branch 'master' + branch 'main' } stages { stage ('Checkout') { @@ -221,15 +221,15 @@ pipeline{ post { regression { script { - if (env.BRANCH_NAME == 'master') { - slackSend (color: '#ff0000', message: '"master" branch build is now failing') + if (env.BRANCH_NAME == 'main') { + slackSend (color: '#ff0000', message: '"main" branch build is now failing') } } } fixed { script { - if (env.BRANCH_NAME == 'master') { - slackSend (color: '#00ff00', message: '"master" branch build is now fixed') + if (env.BRANCH_NAME == 'main') { + slackSend (color: '#00ff00', message: '"main" branch build is now fixed') } } } diff --git a/README.md b/README.md index 58716251d..08778b37c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -[![Build Status](https://travis-ci.com/cloud-hypervisor/cloud-hypervisor.svg?branch=master)](https://travis-ci.com/cloud-hypervisor/cloud-hypervisor) - - [1. What is Cloud Hypervisor?](#1-what-is-cloud-hypervisor) - [Objectives](#objectives) - [High Level](#high-level)