forked from usegalaxy-eu/usegalaxy-eu-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
43 lines (35 loc) · 735 Bytes
/
Jenkinsfile
File metadata and controls
43 lines (35 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
pipeline {
agent {
docker {
image 'python:2.7'
args '-u root'
}
}
stages {
stage('Linting') {
steps {
sh 'pip install -r requirements.txt'
sh 'make lint'
}
}
stage('Updated Trusted Repositories') {
when {
branch 'master'
}
steps {
sh 'git reset --hard origin/master'
sh 'git remote -v show'
sh 'git checkout master'
sh 'git branch'
sh 'git branch -a'
sh 'pip install -r requirements.txt'
sh 'make update_trusted'
sh 'mkdir -p ~/.ssh'
sh 'ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts'
sshagent(['21341801-8530-459e-bed7-40057c7b98ff']) {
sh 'git push git@github.com:usegalaxy-eu/usegalaxy-eu-tools.git master'
}
}
}
}
}