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
<web-item key="stash-close-open-tasks-button" weight="90" | |
section="stash.pull-request.toolbar.actions" application="stash"> | |
<condition class="ch.mibex.crossproduct.stash.HasOpenTasksCondition" /> | |
<label key="open.tasks.resolve.label"/> | |
<tooltip key="open.tasks.resolve.tooltip"/> | |
<styleClass>resolve-open-tasks</styleClass> | |
</web-item> |
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
<dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>org.scala-lang</groupId> | |
<artifactId>scala-library</artifactId> | |
<version>${scala.version}</version> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
<properties> |
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
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.3</version> | |
<configuration> | |
<source>1.8</source> | |
<target>1.8</target><!-- use 1.7 in your Stash module --> | |
</configuration> | |
</plugin> |
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
<modules> | |
<module>api</module> | |
<module>stash</module> | |
<module>bitbucket</module> | |
<module>plugin</module> | |
</modules> | |
<packaging>pom</packaging> |
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
<soy-function key="navuser-absolute-function" class="com.company.plugin.UserNavSoyFunctionAdapter"/> |
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
headers = { | |
'Accept': 'application/json', | |
'Content-Type': 'application/json; charset=UTF-8' | |
} | |
r = oauth.get('http://localhost:6990/bamboo/rest/api/latest/project?expand=projects', headers=headers) | |
print json.loads(r.text) |
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
# we do not have a real verifier but we need to specify one, so we just use a hardcoded value | |
access_token = oauth.fetch_access_token(access_token_url, verifier=u'unused') |
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
from oauthlib.oauth1 import SIGNATURE_RSA | |
from requests_oauthlib import OAuth1Session | |
import json | |
import webbrowser | |
request_token_url = 'http://localhost:6990/bamboo/plugins/servlet/oauth/request-token' | |
oauth = OAuth1Session(your_consumer_key_from_above, | |
signature_type='auth_header', | |
signature_method=SIGNATURE_RSA, | |
rsa_key=your_RSA_key_from_above) | |
request_token = oauth.fetch_request_token(request_token_url) |