diff --git a/.travis.yml b/.travis.yml index 59601e3c..96203f85 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ jdk: - oraclejdk8 before_install: - - ./setup-atlassian-sdk.sh + - ./setup-atlassian-sdk.sh `pwd` - export PATH=opt/atlassian-plugin-sdk/bin:opt/atlassian-plugin-sdk/apache-maven-*/bin:$PATH install: - atlas-mvn -q install -Dbitbucket.version=4.4.0 diff --git a/setup-atlassian-sdk.sh b/setup-atlassian-sdk.sh index 74cedcd8..fa71c839 100755 --- a/setup-atlassian-sdk.sh +++ b/setup-atlassian-sdk.sh @@ -1,5 +1,11 @@ #!/bin/bash -installdir=`pwd` + +if [ "$1" -gt "-1" ] + then echo Give param, like /home/username +fi + +installdir=$1 +cd $1 wget https://marketplace.atlassian.com/download/plugins/atlassian-plugin-sdk-tgz mkdir opt tar -xvzf *plugin-sdk* -C opt