forked from eclipse-xtext/xtext-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eclipse-xtext#11 from eclipse/cd_issue2706
Adapt to Foundation website changes
- Loading branch information
Showing
3 changed files
with
32 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,12 +50,12 @@ spec: | |
git clone -b master [email protected]:eclipse/xtext-website-publish.git deploy-xtext-git-repo | ||
''' | ||
} | ||
sshagent(['git.eclipse.org-bot-ssh']) { // | ||
sh ''' | ||
rm -rf deploy-xtend-git-repo | ||
git clone -b master ssh://[email protected]:29418/www.eclipse.org/xtend deploy-xtend-git-repo | ||
''' | ||
} | ||
// sshagent(['git.eclipse.org-bot-ssh']) { // | ||
// sh ''' | ||
// rm -rf deploy-xtend-git-repo | ||
// git clone -b master ssh://[email protected]:29418/www.eclipse.org/xtend deploy-xtend-git-repo | ||
// ''' | ||
// } | ||
} | ||
} | ||
stage('Generate site') { | ||
|
@@ -71,7 +71,7 @@ spec: | |
dir ('git-repo/xtend-website') { | ||
sh ''' | ||
# generate things in _site | ||
bundle exec jekyll build | ||
bundle exec jekyll build --destination ../xtext-website/_site/xtend | ||
''' | ||
} | ||
} | ||
|
@@ -89,16 +89,16 @@ spec: | |
git status | ||
''' | ||
} | ||
dir ('deploy-xtend-git-repo') { | ||
sh ''' | ||
git config user.name "genie-xtext" | ||
git config user.email "[email protected]" | ||
cp -r $WORKSPACE/git-repo/xtend-website/_site/* . | ||
git diff | ||
git add --all :/ && git commit -m "Generated from commit: https://github.com/eclipse/xtext/commit/$GIT_COMMIT" | ||
git status | ||
''' | ||
} | ||
// dir ('deploy-xtend-git-repo') { | ||
// sh ''' | ||
// git config user.name "genie-xtext" | ||
// git config user.email "[email protected]" | ||
// cp -r $WORKSPACE/git-repo/xtend-website/_site/* . | ||
// git diff | ||
// git add --all :/ && git commit -m "Generated from commit: https://github.com/eclipse/xtext/commit/$GIT_COMMIT" | ||
// git status | ||
// ''' | ||
// } | ||
} | ||
} | ||
stage('Deploy') { | ||
|
@@ -111,13 +111,13 @@ spec: | |
''' | ||
} | ||
} | ||
dir ('deploy-xtend-git-repo') { | ||
sshagent(['git.eclipse.org-bot-ssh']) { // | ||
sh ''' | ||
git push origin master | ||
''' | ||
} | ||
} | ||
// dir ('deploy-xtend-git-repo') { | ||
// sshagent(['git.eclipse.org-bot-ssh']) { // | ||
// sh ''' | ||
// git push origin master | ||
// ''' | ||
// } | ||
// } | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters