summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-01-06 17:52:52 +0100
committerChristian Poessinger <christian@poessinger.com>2019-01-06 17:52:52 +0100
commit88c8b3440bd4e4a31ca86cd5d6e8d23bbc0684e7 (patch)
treeaf5ffc81821fc80d963e5fe58a89141518c5da61 /Jenkinsfile
parent21becfd719541206c22be2459dd10448172d6c37 (diff)
downloadvyos-build-88c8b3440bd4e4a31ca86cd5d6e8d23bbc0684e7.tar.gz
vyos-build-88c8b3440bd4e4a31ca86cd5d6e8d23bbc0684e7.zip
CI/CD: add verbose output option to for 'build-submodules' script
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile129
1 files changed, 13 insertions, 116 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 6151fb72..611777cc 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -26,131 +26,28 @@ pipeline {
}
stages {
- stage('Configure') {
+ stage('Submodule Init') {
steps {
- sh './configure --build-by="autobuild@vyos.net" --debian-mirror="http://ftp.us.debian.org/debian/"'
- }
- }
- stage('Init Submodules') {
- environment {
- // there values are exportesd to all commands in this stage
- GIT_BRANCH_PACKAGE = "current"
- GIT_BRANCH_KERNEL = "linux-vyos-4.19.y"
- }
- steps {
- parallel (
- "mdns-repeater": {
- sh '''
- git submodule update --init packages/mdns-repeater
- cd packages/mdns-repeater
- git checkout $GIT_BRANCH_PACKAGE
- '''
- },
- "pmacct": {
- sh '''
- git submodule update --init packages/pmacct
- cd packages/pmacct
- git checkout $GIT_BRANCH_PACKAGE
- '''
- },
- "udp-broadcast-relay": {
- sh '''
- git submodule update --init packages/udp-broadcast-relay
- cd packages/udp-broadcast-relay
- git checkout $GIT_BRANCH_PACKAGE
- '''
- },
- "vyatta-bash": {
- sh '''
- git submodule update --init packages/vyatta-bash
- cd packages/vyatta-bash
- git checkout $GIT_BRANCH_PACKAGE
- '''
- },
- "vyatta-cfg": {
- sh '''
- git submodule update --init packages/vyatta-cfg
- cd packages/vyatta-cfg
- git checkout $GIT_BRANCH_PACKAGE
- '''
- },
- "vyatta-cfg-firewall": {
- sh '''
- git submodule update --init packages/vyatta-cfg-firewall
- cd packages/vyatta-cfg-firewall
- git checkout $GIT_BRANCH_PACKAGE
- '''
- },
- "vyatta-cfg-op-pppoe": {
- sh '''
- git submodule update --init packages/vyatta-cfg-op-pppoe
- cd packages/vyatta-cfg-op-pppoe
- git checkout $GIT_BRANCH_PACKAGE
- '''
- },
- "vyatta-cfg-qos": {
- sh '''
- git submodule update --init packages/vyatta-cfg-qos
- cd packages/vyatta-cfg-qos
- git checkout $GIT_BRANCH_PACKAGE
- '''
- },
- "vyatta-cfg-quagga": {
- sh '''
- git submodule update --init packages/vyatta-cfg-quagga
- cd packages/vyatta-cfg-quagga
- git checkout $GIT_BRANCH_PACKAGE
- '''
- },
- "vyatta-cfg-system": {
- sh '''
- git submodule update --init packages/vyatta-cfg-system
- cd packages/vyatta-cfg-system
- git checkout $GIT_BRANCH_PACKAGE
- '''
- },
- "vyatta-cfg-vpn": {
- sh '''
- git submodule update --init packages/vyatta-cfg-vpn
- cd packages/vyatta-cfg-vpn
- git checkout $GIT_BRANCH_PACKAGE
- '''
- },
- "vyos-kernel": {
- sh '''
- git submodule update --init packages/vyos-kernel
- cd packages/vyos-kernel
- git checkout $GIT_BRANCH_KERNEL
- '''
- },
- "vyos-wireguard": {
- sh '''
- git submodule update --init packages/vyos-wireguard
- cd packages/vyos-wireguard
- git checkout $GIT_BRANCH_PACKAGE
- '''
- },
- "vyos-accel-ppp": {
- sh '''
- git submodule update --init packages/vyos-accel-ppp
- cd packages/vyos-accel-ppp
- git checkout $GIT_BRANCH_PACKAGE
- '''
- }
- )
+ sh '''
+ git submodule update --init --recursive
+ git submodule update --remote
+ '''
}
}
stage('Build Packages') {
steps {
- sh 'git submodule update --remote'
- sh 'scripts/build-submodules'
+ sh 'scripts/build-submodules --verbose'
}
}
stage('Build ISO') {
steps {
- sh 'ls -al'
- sh 'ls -al packages'
- sh 'sudo make iso'
+ sh '''
+ #!/bin/sh
+ ./configure --build-by="autobuild@vyos.net" --debian-mirror="http://ftp.us.debian.org/debian/"
+ ls -al
+ ls -al packages
+ sudo make iso
+ '''
}
}
}