From 5775114bd79c9415a398fc4131ab9b0f056fe3c7 Mon Sep 17 00:00:00 2001 From: lguohan Date: Sat, 11 Apr 2020 22:49:41 -0700 Subject: [PATCH] [kernel]: add pr build for buster kernel (#96) Signed-off-by: Guohan Lu --- jenkins/common/linux-kernel-build/Jenkinsfile | 2 +- .../linux-kernel-buster-build-pr/Jenkinsfile | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 jenkins/common/linux-kernel-buster-build-pr/Jenkinsfile diff --git a/jenkins/common/linux-kernel-build/Jenkinsfile b/jenkins/common/linux-kernel-build/Jenkinsfile index fc49f4e4a11b..f4486132db78 100644 --- a/jenkins/common/linux-kernel-build/Jenkinsfile +++ b/jenkins/common/linux-kernel-build/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { - agent { node { label 'sonic-slave-stretch' } } + agent { node { label 'sonic-slave-buster' } } options { buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')) diff --git a/jenkins/common/linux-kernel-buster-build-pr/Jenkinsfile b/jenkins/common/linux-kernel-buster-build-pr/Jenkinsfile new file mode 100644 index 000000000000..67564dc06082 --- /dev/null +++ b/jenkins/common/linux-kernel-buster-build-pr/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent { node { label 'sonic-slave-buster' } } + + stages { + stage('Prepare') { + steps { + checkout([$class: 'GitSCM', + branches: [[name: '${sha1}']], + userRemoteConfigs: [[url: 'http://github.com/Azure/sonic-linux-kernel', + refspec: '+refs/pull/*:refs/remotes/origin/pr/*']]]) + } + } + + stage('Build') { + steps { + sh ''' +#!/bin/bash -ex + +export kernel_procure_method=build +make +''' + } + } + } + post { + success { + archiveArtifacts(artifacts: '*.deb') + } + } +}