Advertisement
Guest User

gerrit w/github

a guest
Jun 29th, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. export HOME=/var/
  4. export GERRIT=/var/gerrit
  5.  
  6. if [ -d $GERRIT ]; then
  7. rm -rf $GERRIT
  8. fi
  9.  
  10. mkdir -p $GERRIT/lib
  11.  
  12. curl http://ci.gerritforge.com/job/Plugin_github_master/lastSuccessfulBuild/artifact/github-oauth/target/github-oauth-2.10-SNAPSHOT.jar > $GERRIT/lib$
  13.  
  14. mkdir -p $GERRIT/plugins
  15. curl http://ci.gerritforge.com/job/Plugin_github_master/lastSuccessfulBuild/artifact/github-plugin/target/github-plugin-2.10-SNAPSHOT.jar > $GERRIT/p$
  16.  
  17.  
  18. cd $GERRIT
  19. wget http://ci.gerritforge.com/job/Gerrit-stable-2.9-github-oauth/lastSuccessfulBuild/artifact/buck-out/gen/release.war
  20. cd $GERRIT/plugins
  21. wget http://ci.gerritforge.com/job/Gerrit-stable-2.9-github-oauth/lastSuccessfulBuild/artifact/buck-out/gen/plugins/replication/replication.jar
  22. wget http://ci.gerritforge.com/job/Gerrit-stable-2.9-github-oauth/lastSuccessfulBuild/artifact/buck-out/gen/plugins/reviewnotes/reviewnotes.jar
  23. wget http://ci.gerritforge.com/job/Gerrit-stable-2.9-github-oauth/lastSuccessfulBuild/artifact/buck-out/gen/plugins/singleusergroup/singleusergroup.j$
  24. wget http://ci.gerritforge.com/job/Gerrit-stable-2.9-github-oauth/lastSuccessfulBuild/artifact/buck-out/gen/gerrit-extension-api/extension-api.jar
  25. cd ../
  26.  
  27. if [ -f release.war.1 ]; then
  28. mv release.war.1 release.war
  29. else
  30. echo "all good"
  31. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement