Skip to content

Commit b579df0

Browse files
committed
Grunt: Read authToken from a config json file. Will be stored on Jenkins machine, include tokens for all projects
1 parent f9e61eb commit b579df0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

grunt.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,12 @@ grunt.initConfig({
335335
})()
336336
});
337337

338-
grunt.registerTask( "testswarm", function( commit, authToken ) {
338+
grunt.registerTask( "testswarm", function( commit, configFile ) {
339339
var test,
340340
testswarm = require( "testswarm" ),
341341
testBase = "http://swarm.jquery.org/git/jquery-ui/" + commit + "/tests/unit/",
342342
testUrls = [],
343+
config = grunt.file.readJSON( configFile );
343344
tests = {
344345
"Accordion": "accordion/accordion.html",
345346
"Accordion_deprecated": "accordion/accordion_deprecated.html",
@@ -374,7 +375,7 @@ grunt.registerTask( "testswarm", function( commit, authToken ) {
374375
done: this.async()
375376
}, {
376377
authUsername: "jqueryui",
377-
authToken: authToken,
378+
authToken: config.jqueryui.authToken,
378379
jobName: 'jQuery UI commit #<a href="https://github.com/jquery/jquery-ui/commit/' + commit + '">' + commit + '</a>',
379380
runMax: 4,
380381
"runNames[]": Object.keys(tests),

0 commit comments

Comments
 (0)