diff --git a/Jenkinsfile b/Jenkinsfile index de7f5c2a..5bd40901 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,12 +17,11 @@ String platform='Install'; { checkout scm - // def branchCommit = '"' + 'https://gitlab.syncfusion.com/api/v4/projects/' + env.projectId + '/merge_requests/' + env.MergeRequestId + '/changes' - def branchCommit = '"'+'https://api.github.com/repos/syncfusion-content/install-docs/pulls/'+env.pullRequestId+'/changes' + def branchCommit = '"'+'https://api.github.com/repos/syncfusion-content/install-docs/pulls/'+env.pullRequestId+'/files' String branchCommitDetails = bat returnStdout: true, script: 'curl -H "Accept: application/vnd.github.v3+json" -u SyncfusionBuild:' + env.GithubBuildAutomation_PrivateToken + " " + branchCommit - - def ChangeFiles= branchCommitDetails.split('\n')[2]; - ChangeFiles = ChangeFiles.split('"new_path":') + + + def ChangeFiles= branchCommitDetails.split('"filename": '); for (int i= 1; i < ChangeFiles.size();i++) {