Created
October 11, 2018 16:38
-
-
Save EugenMayer/117f3076b73bc40577da634356d815df to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| curl -X GET -O -v 'https://maven.atlassian.com/content/repositories/atlassian-public/com/atlassian/labs/plugins/quickreload/1.24.1/quickreload-1.24.1.jar' | |
| echo 'Installing Quick Reload from local JAR.' | |
| url="http://admin:admin@localhost/rest/plugins/1.0/"; | |
| token=$(curl -sI -H "Accept: application/vnd.atl.plugins.installed+json" "$url?os_authType=basic" | grep upm-token | cut -d: -f2- | tr -d '[[:space:]]'); | |
| curl -X POST -v -F plugin=@./quickreload-1.24.1.jar "$url?token=$token" | |
| sleep 5 | |
| # install our plugin | |
| curl -H 'X-Atlassian-Token: no-check' -X POST 'http://localhost/rest/qr/1.0/plugin/install//jira/target/jira-1.0.0.jar' | |
| # dev mode | |
| curl -H 'X-Atlassian-Token: no-check' -X POST 'http://localhost/rest/qr/1.0/tracked//jira' | |
| curl -H 'X-Atlassian-Token: no-check' -X GET 'http://localhost/rest/qr/1.0/batching/setState?enabled=false' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment