forked from eclipse-scava/scava-datasets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfileDeploy
101 lines (80 loc) · 4.74 KB
/
JenkinsfileDeploy
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
pipeline {
agent any
stages {
stage('SCM') {
steps {
git url: 'https://github.com/eclipse-scava/scava-datasets.git'
}
}
stage('Retrieve Documentation') {
steps {
sh '''
wget http://ci6.castalia.camp:8080/job/scava-datasets/lastSuccessfulBuild/artifact/docs/*zip*/docs.zip -O docs.zip
unzip -o docs.zip
wget http://ci6.castalia.camp:8080/job/scava-datasets/lastSuccessfulBuild/artifact/datasets/projects/*zip*/projects.zip -O projects.zip
unzip -o projects.zip
wget http://ci6.castalia.camp:8080/job/scava-datasets/lastSuccessfulBuild/artifact/datasets/aeri_stacktraces/*zip*/aeri_stacktraces.zip -O aeri_stacktraces.zip
unzip -o aeri_stacktraces.zip
wget http://ci6.castalia.camp:8080/job/scava-datasets/lastSuccessfulBuild/artifact/datasets/eclipse_mls/*zip*/eclipse_mls.zip -O eclipse_mls.zip
unzip -o eclipse_mls.zip
'''
}
}
stage('Deploy Documentation') {
steps {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh '''
ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/scava/*.html
ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/scava/docs/
scp -r docs/scava.html [email protected]:/home/data/httpd/download.eclipse.org/scava/index.html
scp -r docs/scava_datasets.html [email protected]:/home/data/httpd/download.eclipse.org/scava/datasets/index.html
scp -r docs/datasets_privacy.html [email protected]:/home/data/httpd/download.eclipse.org/scava/docs/datasets_privacy.html
scp -r aeri_stacktraces/* [email protected]:/home/data/httpd/download.eclipse.org/scava/datasets/aeri_stacktraces/
scp -r docs/data_transformation.png [email protected]:/home/data/httpd/download.eclipse.org/scava/docs/
scp -r docs/scava-header.jpg [email protected]:/home/data/httpd/download.eclipse.org/scava/
'''
}
}
}
/* stage('Deploy AERI') {
steps {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh '''
ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/scava/datasets/aeri_stacktraces/
ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/scava/datasets/aeri_stacktraces/
wget https://castalia.camp/dl/datasets/incidents_bundles_extract.csv.bz2 -O aeri_stacktraces/incidents_bundles_extract.csv.bz2
wget https://castalia.camp/dl/datasets/incidents_extract.csv.bz2 -O aeri_stacktraces/incidents_extract.csv.bz2
wget https://castalia.camp/dl/datasets/incidents_full.tar.bz2 -O aeri_stacktraces/incidents_full.tar.bz2
wget https://castalia.camp/dl/datasets/problems_extract.csv.bz2 -O aeri_stacktraces/problems_extract.csv.bz2
wget https://castalia.camp/dl/datasets/problems_full.tar.bz2 -O aeri_stacktraces/problems_full.tar.bz2
scp -r aeri_stacktraces/* [email protected]:/home/data/httpd/download.eclipse.org/scava/datasets/aeri_stacktraces/
'''
}
}
} */
stage('Deploy Mailing lists') {
steps {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh '''
ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/scava/datasets/eclipse_mls/
ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/scava/datasets/eclipse_mls/
wget https://castalia.camp/dl/datasets/eclipse_mls.gz -O eclipse_mls/eclipse_mls.gz
scp -r eclipse_mls/* [email protected]:/home/data/httpd/download.eclipse.org/scava/datasets/eclipse_mls/
'''
}
}
}
stage('Deploy Projects') {
steps {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh '''
ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/scava/datasets/projects/
ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/scava/datasets/projects/
ssh [email protected] ls -R /home/data/httpd/download.eclipse.org/scava/
scp -r projects/* [email protected]:/home/data/httpd/download.eclipse.org/scava/datasets/projects/
'''
}
}
}
}
}