Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- export HOME=/var/
- export GERRIT=/var/gerrit
- if [ -d $GERRIT ]; then
- rm -rf $GERRIT
- fi
- mkdir -p $GERRIT/lib
- curl http://ci.gerritforge.com/job/Plugin_github_master/lastSuccessfulBuild/artifact/github-oauth/target/github-oauth-2.10-SNAPSHOT.jar > $GERRIT/lib$
- mkdir -p $GERRIT/plugins
- curl http://ci.gerritforge.com/job/Plugin_github_master/lastSuccessfulBuild/artifact/github-plugin/target/github-plugin-2.10-SNAPSHOT.jar > $GERRIT/p$
- cd $GERRIT
- wget http://ci.gerritforge.com/job/Gerrit-stable-2.9-github-oauth/lastSuccessfulBuild/artifact/buck-out/gen/release.war
- cd $GERRIT/plugins
- wget http://ci.gerritforge.com/job/Gerrit-stable-2.9-github-oauth/lastSuccessfulBuild/artifact/buck-out/gen/plugins/replication/replication.jar
- wget http://ci.gerritforge.com/job/Gerrit-stable-2.9-github-oauth/lastSuccessfulBuild/artifact/buck-out/gen/plugins/reviewnotes/reviewnotes.jar
- wget http://ci.gerritforge.com/job/Gerrit-stable-2.9-github-oauth/lastSuccessfulBuild/artifact/buck-out/gen/plugins/singleusergroup/singleusergroup.j$
- wget http://ci.gerritforge.com/job/Gerrit-stable-2.9-github-oauth/lastSuccessfulBuild/artifact/buck-out/gen/gerrit-extension-api/extension-api.jar
- cd ../
- if [ -f release.war.1 ]; then
- mv release.war.1 release.war
- else
- echo "all good"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement