Commit 8213a59e authored by Boris Baldassari's avatar Boris Baldassari
Browse files

Fix jenkinsfile paths, clean up rsync file.

parent 7555c7a9
......@@ -59,11 +59,17 @@ pipeline {
echo "Cleaning website zone from non-compressed files."
find ../website/public/ -name "*.csv" | xargs rm -rf
find ../website/public/ -name "git*.txt" | xargs rm -rf
'''
}
}
stage('Build download') {
steps {
sh '''
echo "Creating download area."
rsync -am --include='*.bz2' --include='*/' --exclude='*' public/ download/
rsync -am --include='*.gz' --include='*/' --exclude='*' public/ download/
rsync -am --include='*.bz2' --include='*/' --exclude='*' website/public/ download/
rsync -am --include='*.gz' --include='*/' --exclude='*' website/public/ download/
echo "Cleaning website zone from compressed files."
find ../website/public/ -name "*.gz" -or -name "*.xz" -or -name "*.bz2" | xargs rm -rf
find website/public/ -name "*.gz" -or -name "*.xz" -or -name "*.bz2" | xargs rm -rf
'''
}
}
......@@ -78,10 +84,10 @@ pipeline {
steps {
sh '''
DATE=$(date +"%Y-%m-%d %T")
git clone ssh://bbaldassari2kd@git.eclipse.org:29418/www.eclipse.org/dataeggs.git download/
cd download/
git clone ssh://bbaldassari2kd@git.eclipse.org:29418/www.eclipse.org/dataeggs.git www/
cd www/
rm -rf *
mv ../website/download/* .
mv ../website/public/* .
git add -A .
git commit -m "Publish web site $DATE."
git push -u origin master
......@@ -91,8 +97,8 @@ pipeline {
}
stage('Archiving') {
steps {
archiveArtifacts artifacts: 'website/public/**/*.*', fingerprint: true
archiveArtifacts artifacts: 'download/public/**/*.*', fingerprint: true
archiveArtifacts artifacts: 'www/**/*.*', fingerprint: true
archiveArtifacts artifacts: 'download/**/*.*', fingerprint: true
cleanWs()
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment