Skip to content

Commit 0dcaa4e

Browse files
committed
Add Jenkins Pipline script
1 parent 135a506 commit 0dcaa4e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.jenkins/RunMaps

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
pipeline {
2+
agent any
3+
stages {
4+
stage('Install pip') {
5+
steps {
6+
//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'
7+
sh 'sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5BA31D57EF5975CA'
8+
sh 'apt-get update && apt-get install -y python3-pip'
9+
}
10+
}
11+
stage('Install Requirements') {
12+
steps {
13+
sh 'pip3 install --upgrade pip' // sh means bash
14+
sh 'pip3 install -r requirements.txt'
15+
}
16+
}
17+
stage('version') {
18+
steps {
19+
sh 'python3 --version'
20+
}
21+
}
22+
stage('Run HodographMaps') {
23+
steps {
24+
sh 'export PYTHONPATH=$(pwd) && echo $PYTHONPATH'
25+
sh './run_script.sh 12'
26+
}
27+
}
28+
// Add more stages as needed
29+
}
30+
}

0 commit comments

Comments
 (0)