Skip to content

Commit

Permalink
[kernel]: add pr build for buster kernel (sonic-net#96)
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <lguohan@gmail.com>
  • Loading branch information
lguohan authored Apr 12, 2020
1 parent e85c6d6 commit 5775114
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jenkins/common/linux-kernel-build/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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'))
Expand Down
30 changes: 30 additions & 0 deletions jenkins/common/linux-kernel-buster-build-pr/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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')
}
}
}

0 comments on commit 5775114

Please sign in to comment.