forked from ganga-devs/ganga
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile_release
More file actions
30 lines (30 loc) · 1.07 KB
/
Copy pathJenkinsfile_release
File metadata and controls
30 lines (30 loc) · 1.07 KB
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
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
}
stages {
// Build stage
stage('Build Core Image') {
steps{
withCredentials([usernamePassword(credentialsId: '03adcde0-64da-426d-9a59-150c2ef0656a', passwordVariable: 'PYPI_PASSWORD', usernameVariable: 'PYPI_USER'), usernamePassword(credentialsId: 'c2661e88-3a17-4c61-8386-82c38d5b9647', usernameVariable: 'GITHUBAPIUSER', passwordVariable: 'GITHUBAPIPASSWORD')]) {
sshagent(credentials: ['GangaDeployKey']){
sh """
virtualenv gangaRelease
. gangaRelease/bin/activate
pip install requests
./startRelease.sh
deactivate
rm -r gangaRelease
"""
}
}
}
}
}
// post {
// success {
// mail bcc: '', body: 'New Ganga version has been released', cc: '', from: 'project-ganga-developers@cern.ch', replyTo: 'project-ganga-developers@cern.ch', subject: 'New Ganga released', to: 'project-ganga-developers@cern.ch'
// }
// }
}