From 73c9934708b30c480002fe24f9b9cc3ade8b72d5 Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Wed, 22 May 2024 14:05:29 +0200 Subject: [PATCH] Adds Jenkinsfile --- Jenkinsfile | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..57a6929 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,43 @@ +void checkout_project(String repoUrl, String branch = 'develop') { + checkout([ + $class: 'GitSCM', + branches: [ + [name: "*/${branch}"] + ], + extensions: [ + [$class: 'CleanBeforeCheckout'], + [$class: 'SubmoduleOption', disableSubmodules: false, parentCredentials: true, recursiveSubmodules: true, reference: '', trackingSubmodules: false] + ], + submoduleCfg: [], + userRemoteConfigs: [ + [credentialsId: 'gitea-jenkins', url: repoUrl] + ] + ]) +} + + + +pipeline { + agent { + docker { + image 'git.minres.com/tooling/riscof_sail:latest' + } + } + + stages { + stage("Checkout Repositories"){ + steps { + checkout_project("https://git.minres.com/TGFS/TGC-ISS.git") + checkout_project("https://git.minres.com/TGFS/TGC-COMPLIANCE.git", "master") + } + } + stage("Build TGC-ISS"){ + steps { + sh 'pwd' + sh 'ls -la' + sh 'ls -la ..' + } + } + + } +}