diff --git a/Jenkinsfile b/Jenkinsfile index 8919642d..ef7e5336 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,10 @@ String platform='ASP.NET'; { checkout scm - def branchCommit = 'https://api.github.com/repos/syncfusion-content/'+env.githubSourceRepoHttpUrl.split('/')[env.githubSourceRepoHttpUrl.split('/').size() - 1]+'/pulls/' + env.pullRequestId + '/files' + def page = 1 + while(true) + { + def branchCommit = 'https://api.github.com/repos/syncfusion-content/'+env.githubSourceRepoHttpUrl.split('/')[env.githubSourceRepoHttpUrl.split('/').size() - 1]+'/pulls/' + env.pullRequestId + '/files?per_page=100^&page='+ page String branchCommitDetails = bat returnStdout: true, script: 'curl -H "Accept: application/vnd.github.v3+json" -u SyncfusionBuild:' + env.GithubBuildAutomation_PrivateToken + " " + branchCommit def ChangeFiles= branchCommitDetails.split('"filename": '); @@ -26,7 +29,15 @@ String platform='ASP.NET'; { def ChangeFile= ChangeFiles[i].split(',')[0].replace('"', '') Content += env.WORKSPACE + "\\Spell-Checker\\" + ChangeFile + "\r\n"; - } + } + + // Last page + if((ChangeFiles.size() - 1) < 100) + { + break + } + page++ + } if (Content) { writeFile file: env.WORKSPACE+"/cireports/content.txt", text: Content