Skip to content

Commit d17337f

Browse files
committed
Fix github credencials (pass 2)
Github project credentials are to be used in `wget` action when accessing `https://raw.githubusercontent.com` in order to minimize restriction limits Signed-off-by: Victor Rubezhny <[email protected]>
1 parent 70a582a commit d17337f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ spec:
5656
container('container') {
5757
withCredentials([string(credentialsId: "${GITHUB_API_CREDENTIALS_ID}", variable: 'GITHUB_API_TOKEN')]) {
5858
wrap([$class: 'Xvnc', useXauthority: true]) {
59-
sh 'mvn clean verify -B -Dtycho.disableP2Mirrors=true -Ddownload.cache.skip=true -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -PpackAndSign -Dmaven.repo.local=$WORKSPACE/.m2/repository'
59+
sh 'mvn clean verify -B -Dtycho.disableP2Mirrors=true -Ddownload.cache.skip=true -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -PpackAndSign -Dmaven.repo.local=$WORKSPACE/.m2/repository -Dgithub.api.token="${GITHUB_API_TOKEN}"'
6060
}
6161
}
6262
}

org.eclipse.wildwebdeveloper/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<url>https://raw.githubusercontent.com/microsoft/vscode-eslint/release/2.2.2/server/package.json</url>
9595
<outputDirectory>${project.build.directory}/vscode-eslint-ls/extension/server</outputDirectory>
9696
<headers>
97-
<Authorization>${GITHUB_API_TOKEN}</Authorization>
97+
<Authorization>${github.api.token}</Authorization>
9898
</headers>
9999
</configuration>
100100
</execution>

0 commit comments

Comments
 (0)