-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJenkinsfileGet
57 lines (56 loc) · 1.89 KB
/
JenkinsfileGet
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
pipeline {
agent any
environment {
RSYNC_PASSWD = credentials('rsync_passwd')
}
options {
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '5'))
}
stages {
stage('SCM') {
steps {
git url: 'https://github.com/eclipse-scava/scava-datasets.git'
}
}
/* stage('Build mboxes') {
steps {
sh '''
rm /data/eclipse_mls/*.mbox.lock || echo "No mbox lock found."
rsync -avlp -e ssh --rsh="/usr/bin/sshpass -p ${SYS_RSYNC_PASSWD} ssh -o StrictHostKeyChecking=no -l bbaldassari2kd" build.eclipse.org:/opt/public/download-staging.priv/scava/ /data/eclipse_mls/ || echo "Rsync had issues. But the show must go on, right?"
chmod 777 /data/eclipse_mls/*
source ~/perl5/perlbrew/etc/bashrc
perlbrew switch perl-5.30.1
perl -v
Rscript --version
cd scripts/ && sh ./process_mboxes.sh
ls /data/eclipse_mls/ > ../datasets/eclipse_mls/list_mboxes.txt
'''
}
} */
stage('Build projects') {
steps {
sh '''
pwd
ls
source ~/perl5/perlbrew/etc/bashrc
perlbrew switch perl-5.30.1
perl -v
Rscript --version
cd scripts/ && sh ./process_all_projects.sh
'''
}
}
stage('Archiving') {
steps {
archiveArtifacts artifacts: 'datasets/**/*_files/**/*.*', fingerprint: true
archiveArtifacts artifacts: 'datasets/**/*.gz', fingerprint: true
archiveArtifacts artifacts: 'datasets/**/*.html', fingerprint: true
archiveArtifacts artifacts: 'datasets/**/*.pdf', fingerprint: true
archiveArtifacts artifacts: 'datasets/**/*.rmd', fingerprint: true
archiveArtifacts artifacts: 'datasets/**/*.txt', fingerprint: true
archiveArtifacts artifacts: 'docs/*', fingerprint: true
cleanWs()
}
}
}
}