Skip to content

Commit

Permalink
Merge pull request jenkins-infra#9 from jenkins-infra/bearer-token-IN…
Browse files Browse the repository at this point in the history
…FRA-3066

[INFRA-3066] Try using a `Bearer` token rather than `Basic` auth
  • Loading branch information
jglick committed Sep 10, 2021
2 parents b11e736 + 5b91369 commit 57327ca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
<servers>
<server>
<id>maven.jenkins-ci.org</id>
<username>${env.MAVEN_USERNAME}</username>
<password>${env.MAVEN_TOKEN}</password>
<configuration>
<httpHeaders>
<property>
<name>Authorization</name>
<value>Bearer ${env.MAVEN_TOKEN}</value>
</property>
</httpHeaders>
</configuration>
</server>
</servers>
</settings>

0 comments on commit 57327ca

Please sign in to comment.