diff options
| author | arseney300 <arseney300@december.com> | 2026-03-04 07:14:31 +0000 |
|---|---|---|
| committer | arseney300 <arseney300@december.com> | 2026-03-04 07:14:31 +0000 |
| commit | 82cfe19c673346499f8c9e16c6d40f69a49827ad (patch) | |
| tree | 5ca839ffd88ffe7504522d4e8947d1bfa632e6ce | |
| parent | f473a453b0c03d0042b4422de1d822274d2e2d4e (diff) | |
ci: add Jenkinsfile
| -rw-r--r-- | Jenkinsfile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000000..56c8a3ccc73 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,40 @@ +pipeline { + agent { + docekr { image 'kernel-builder' } + } + + environment { + NEXUS_URL = 'https://127.23.0.6' + NEXUS_CREDS = credentials('nexut-credentials') + } + + options { + timeout(time: 1, unit: 'HOURS') + } + + stages { + matrix { + axes { + axis { + name 'CONFIG' + values 'defconfig', 'bpi-r2-pro-rk3568_defconfig', 'nanopi-r5s-rk3568_defconfig', 'orangepi_pc_defconfig' + } + } + stages { + stage('Make config') { + sh 'make ${CONFIG}' + } + stage('Build') { + sh 'make CROSS_COMPILE=aarch64-linux-gnu- -j$(nproc)' + } + stage('Upload to nexus'){ + sh ``` + curl -u "$NEXUS_CREDS" --upload-file u-boot.bin "$NEXUS_URL/repository/u-boot/builds/${BUILD_NUMBER}/u-boot.bin" + ``` + } + + } + } + } +} + |
