summaryrefslogtreecommitdiff
path: root/packages/linux-kernel
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-09 22:16:27 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-10 00:31:24 +0100
commit50c5f3669c5c399cfa233ea568cee4210a911d1e (patch)
treedae19c7d25a0ef93870c05f6b7a59d47031c10c2 /packages/linux-kernel
parenta2f580a66152b0457ee893227d8187891d72848b (diff)
downloadvyos-build-50c5f3669c5c399cfa233ea568cee4210a911d1e.tar.gz
vyos-build-50c5f3669c5c399cfa233ea568cee4210a911d1e.zip
Jenkins: Kernel: instead of 'git clone' the source use the tarball
This reduces the download and checkout overhead.
Diffstat (limited to 'packages/linux-kernel')
-rw-r--r--packages/linux-kernel/Jenkinsfile22
1 files changed, 15 insertions, 7 deletions
diff --git a/packages/linux-kernel/Jenkinsfile b/packages/linux-kernel/Jenkinsfile
index a6a786d9..cec41934 100644
--- a/packages/linux-kernel/Jenkinsfile
+++ b/packages/linux-kernel/Jenkinsfile
@@ -87,13 +87,21 @@ pipeline {
}
}
steps {
- dir(env.BASE_DIR + '/linux') {
- checkout([$class: 'GitSCM',
- doGenerateSubmoduleConfigurations: false,
- extensions: [[$class: 'CleanCheckout'],
- [$class: 'CloneOption', depth: 1, noTags: false, reference: '', shallow: true]],
- branches: [[name: 'v5.4.88' ]],
- userRemoteConfigs: [[credentialsId: 'GitHub-vyosbot', url: 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git']]])
+ script {
+ dir(env.BASE_DIR) {
+ sh '''
+ KERNEL_VER='5.4.88'
+ gpg2 --locate-keys torvalds@kernel.org gregkh@kernel.org
+ curl -OL https://www.kernel.org/pub/linux/kernel/v5.x/linux-${KERNEL_VER}.tar.xz
+ curl -OL https://www.kernel.org/pub/linux/kernel/v5.x/linux-${KERNEL_VER}.tar.sign
+ xz -cd linux-${KERNEL_VER}.tar.xz | gpg2 --verify linux-${KERNEL_VER}.tar.sign -
+ if [ $? -ne 0 ]; then
+ exit 1
+ fi
+ tar xf linux-${KERNEL_VER}.tar.xz
+ ln -s linux-${KERNEL_VER} linux
+ '''
+ }
}
}
}