From 0dcaa4ed59efa5f3725a8c94dd9ced09e4e8fb28 Mon Sep 17 00:00:00 2001 From: mammatus95 Date: Wed, 31 Jul 2024 12:12:17 +0200 Subject: [PATCH] Add Jenkins Pipline script --- .jenkins/RunMaps | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .jenkins/RunMaps diff --git a/.jenkins/RunMaps b/.jenkins/RunMaps new file mode 100644 index 0000000..efc3a67 --- /dev/null +++ b/.jenkins/RunMaps @@ -0,0 +1,30 @@ +pipeline { + agent any + stages { + stage('Install pip') { + steps { + //sh 'wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | gpg --dearmor | sudo tee /usr/share/keyrings/jenkins-archive-keyring.gpg > /dev/null' + sh 'sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5BA31D57EF5975CA' + sh 'apt-get update && apt-get install -y python3-pip' + } + } + stage('Install Requirements') { + steps { + sh 'pip3 install --upgrade pip' // sh means bash + sh 'pip3 install -r requirements.txt' + } + } + stage('version') { + steps { + sh 'python3 --version' + } + } + stage('Run HodographMaps') { + steps { + sh 'export PYTHONPATH=$(pwd) && echo $PYTHONPATH' + sh './run_script.sh 12' + } + } + // Add more stages as needed + } +}