Skip to content
Snippets Groups Projects
Commit 2a3dc17a authored by Boris Baldassari's avatar Boris Baldassari
Browse files

#5 Fix deploy to eclipse downloads.


Signed-off-by: default avatarBoris Baldassari <boris@chrysalice.org>
parent e15bc8fe
No related branches found
No related tags found
No related merge requests found
......@@ -28,9 +28,9 @@ pipeline {
perlbrew switch perl-5.30.1
perl -v
Rscript --version
#cd scripts/ && sh ./process_mboxes.sh
#ls /data/eclipse_mls/ > ../website/content/eclipse_mls/list_mboxes.txt
#cp /data/eclipse_mls_full.csv website/content/eclipse_mls/
cd scripts/ && sh ./process_mboxes.sh
ls /data/eclipse_mls/ > ../website/content/eclipse_mls/list_mboxes.txt
cp /data/eclipse_mls_full.csv website/content/eclipse_mls/
'''
}
}
......@@ -43,7 +43,7 @@ pipeline {
perlbrew switch perl-5.30.1
perl -v
Rscript --version
#cd scripts/ && sh ./process_all_projects.sh
cd scripts/ && sh ./process_all_projects.sh
'''
}
}
......
pipeline {
agent any
stages {
stage('Retrieve Website') {
steps {
sh '''
wget http://ci4.castalia.camp:8080/job/scava-datasets/lastSuccessfulBuild/artifact/website/public/*zip*/public.zip -O public.zip
unzip -o public.zip
'''
}
}
stage('Deploy to downloads') {
steps {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh '''
ssh genie.scava@projects-storage.eclipse.org rm -rf /home/data/httpd/download.eclipse.org/scava/*
scp -r public/* genie.scava@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/scava/
ssh genie.scava@projects-storage.eclipse.org ls -lR /home/data/httpd/download.eclipse.org/scava/
'''
}
}
}
}
}
......@@ -90,7 +90,7 @@ if [ $run_csv -eq 1 ]; then
echo "# Cleaning workspace"
rm -rf csv/
echo "# Moving eclipse_mls_full.csv to datasets directory..."
echo "# Copy eclipse_mls_full.csv to datasets directory..."
cp eclipse_mls_full_out.csv ${dir_scripts}/../website/content/eclipse_mls/eclipse_mls_full.csv
echo "# Checking file eclipse_mls_full.csv is in website/content/eclipse_mls..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment