Skip to content

Commit

Permalink
#19: use aws key/secret from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Sep 30, 2012
1 parent aee905b commit d22ec89
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions s3auth-relay/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
<showVersion>false</showVersion>
<streamLogs>true</streamLogs>
<postBuildHookScript>verify.groovy</postBuildHookScript>
<settingsFile>${project.build.outputDirectory}/invoker/settings.xml</settingsFile>
</configuration>
<executions>
<execution>
Expand All @@ -246,6 +247,17 @@
<target>
<copy file="${basedir}/src/main/production/pom.xml"
todir="${project.build.outputDirectory}/invoker/relay"/>
<echo file="${project.build.outputDirectory}/invoker/settings.xml"><![CDATA[
<settings>
<servers>
<server>
<id>s3auth.s3</id>
<username>${aws.key}</username>
<password>${aws.secret}</password>
</server>
</servers>
</settings>
]]></echo>
<echo file="${project.build.outputDirectory}/invoker/relay/verify.groovy">
def log = new File(basedir, 'build.log')
assert log.text.contains('java.net.BindException: Permission denied')
Expand Down

0 comments on commit d22ec89

Please sign in to comment.