Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Projects
dataeggs
Eclipse DataEggs
Commits
8213a59e
Commit
8213a59e
authored
May 04, 2021
by
Boris Baldassari
Browse files
Fix jenkinsfile paths, clean up rsync file.
parent
7555c7a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
8213a59e
...
...
@@ -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:
'w
ebsite/public
/**/*.*'
,
fingerprint:
true
archiveArtifacts
artifacts:
'download/
public/
**/*.*'
,
fingerprint:
true
archiveArtifacts
artifacts:
'w
ww
/**/*.*'
,
fingerprint:
true
archiveArtifacts
artifacts:
'download/**/*.*'
,
fingerprint:
true
cleanWs
()
}
}
...
...
scripts/rsync_exclude.txt
deleted
100644 → 0
View file @
7555c7a9
*.gz
*.bz2
*.xz
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment