From ca1afb203a96df60f1d7927ab4a3af5b7008f669 Mon Sep 17 00:00:00 2001 From: Aditya Mehra Date: Sat, 27 Feb 2021 16:40:02 +0530 Subject: [PATCH 1/3] Added jenkins file for build testing --- Jenkinsfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..21ba1e17 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,33 @@ +pipeline { + agent any + + stages { + stage('Fetch Assets') { + agent any + steps { + echo 'Fetching Assets' + git submodule update --init --recursive + git submodule update --remote --merge + } + } + stage('Patch Assets') { + agent any + steps { + sh(./scripts/br-patches.sh) + } + } + stage('Build Assets') { + agent any + steps { + make clean + make rpi4_64-gui + } + } + stage('Deploy Image'){ + agent any + steps { + echo "To Be Implemented" + } + } + } +} From 2c4fd77b04184742bbb6720263d7834b41c30cea Mon Sep 17 00:00:00 2001 From: Aditya Mehra Date: Sat, 27 Feb 2021 16:51:35 +0530 Subject: [PATCH 2/3] fix sh call in jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 21ba1e17..9fb567f7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { stage('Patch Assets') { agent any steps { - sh(./scripts/br-patches.sh) + sh("./scripts/br-patches.sh") } } stage('Build Assets') { From f2256241409b8a48d39825b5addcef9ddbc533a4 Mon Sep 17 00:00:00 2001 From: Aditya Mehra Date: Sat, 27 Feb 2021 16:56:01 +0530 Subject: [PATCH 3/3] convert all steps to use sh in jenkins --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9fb567f7..da5557ba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,21 +6,21 @@ pipeline { agent any steps { echo 'Fetching Assets' - git submodule update --init --recursive - git submodule update --remote --merge + sh "git submodule update --init --recursive" + sh "git submodule update --remote --merge" } } stage('Patch Assets') { agent any steps { - sh("./scripts/br-patches.sh") + sh "./scripts/br-patches.sh" } } stage('Build Assets') { agent any steps { - make clean - make rpi4_64-gui + sh "make clean" + sh "make rpi4_64-gui" } } stage('Deploy Image'){