fix for invalid [jenkins] tests (#1777)
* fix for invalid [jenkins] tests
This commit is contained in:
@@ -4536,11 +4536,11 @@ cache(function(data, match, sendBadge, request) {
|
||||
var options = {
|
||||
json: true,
|
||||
uri: scheme + '://' + host + '/job/' + job
|
||||
+ '/lastBuild/api/json?tree=actions[failCount,skipCount,totalCount]'
|
||||
+ '/lastBuild/api/json?tree=' + encodeURIComponent('actions[failCount,skipCount,totalCount]')
|
||||
};
|
||||
if (job.indexOf('/') > -1 ) {
|
||||
options.uri = scheme + '://' + host + '/' + job
|
||||
+ '/lastBuild/api/json?tree=actions[failCount,skipCount,totalCount]';
|
||||
+ '/lastBuild/api/json?tree=' + encodeURIComponent('actions[failCount,skipCount,totalCount]');
|
||||
}
|
||||
|
||||
if (serverSecrets && serverSecrets.jenkins_user) {
|
||||
|
||||
Reference in New Issue
Block a user