From 582fd6a7ab9b1144f2352829d70f2d5f96ff0270 Mon Sep 17 00:00:00 2001
From: Kannan <74587271+kannans24@users.noreply.github.com>
Date: Thu, 18 Nov 2021 12:22:08 +0530
Subject: [PATCH 1/9] Update Jenkinsfile

Changed the file attribute for changed.
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index de7f5c2a..4a673353 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -22,7 +22,7 @@ String platform='Install';
             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":')
+            ChangeFiles = ChangeFiles.split('"filename":')
 
             for (int i= 1; i < ChangeFiles.size();i++)
             {

From 9d7d0c38f55bf53e8ef9e8de86817818e78e7ee1 Mon Sep 17 00:00:00 2001
From: Kannan <74587271+kannans24@users.noreply.github.com>
Date: Thu, 18 Nov 2021 12:41:27 +0530
Subject: [PATCH 2/9] Update Jenkinsfile

Print change files.
---
 Jenkinsfile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 4a673353..cb777e82 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -22,6 +22,7 @@ String platform='Install';
             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];
+		   echo ChangeFiles;
             ChangeFiles = ChangeFiles.split('"filename":')
 
             for (int i= 1; i < ChangeFiles.size();i++)

From e8597b1cf4285a2e5d1542fedbde03825382bc3f Mon Sep 17 00:00:00 2001
From: Kannan <74587271+kannans24@users.noreply.github.com>
Date: Thu, 18 Nov 2021 12:44:21 +0530
Subject: [PATCH 3/9] Update Jenkinsfile

logging
---
 Jenkinsfile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index cb777e82..5b5cc303 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -22,6 +22,7 @@ String platform='Install';
             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];
+		   echo "File changes"
 		   echo ChangeFiles;
             ChangeFiles = ChangeFiles.split('"filename":')
 

From e090f97ee3b6625cf5260eb16029066b996d328e Mon Sep 17 00:00:00 2001
From: Kannan <74587271+kannans24@users.noreply.github.com>
Date: Thu, 18 Nov 2021 12:46:06 +0530
Subject: [PATCH 4/9] Update Jenkinsfile

API URL updated.
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 5b5cc303..26e94f28 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -18,7 +18,7 @@ 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];

From 20042079c31594132c83596ad1c0145a6f888529 Mon Sep 17 00:00:00 2001
From: Kannan <74587271+kannans24@users.noreply.github.com>
Date: Thu, 18 Nov 2021 12:47:58 +0530
Subject: [PATCH 5/9] Update Jenkinsfile

Logging
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 26e94f28..98d82f28 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -20,7 +20,7 @@ String platform='Install';
 			// 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+'/files'
             String branchCommitDetails = bat returnStdout: true, script: 'curl -H "Accept: application/vnd.github.v3+json" -u SyncfusionBuild:' + env.GithubBuildAutomation_PrivateToken + " " + branchCommit
-
+		echo branchCommitDetails
             def ChangeFiles= branchCommitDetails.split('\n')[2];
 		   echo "File changes"
 		   echo ChangeFiles;

From 7d0cb000030e8c21cf34ba8c24df674b4bfbc2ed Mon Sep 17 00:00:00 2001
From: Kannan <74587271+kannans24@users.noreply.github.com>
Date: Thu, 18 Nov 2021 12:57:05 +0530
Subject: [PATCH 6/9] Update Jenkinsfile

Logging
---
 Jenkinsfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 98d82f28..a780d8de 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -28,6 +28,8 @@ String platform='Install';
 
             for (int i= 1; i < ChangeFiles.size();i++)
             {
+		    echo i
+		    echo ChangeFiles[i]
             def ChangeFile= ChangeFiles[i].split(',')[0].replace('"', '')
             Content += env.WORKSPACE + "\\Spell-Checker\\" + ChangeFile + "\r\n";
             }

From 2e90bcaa684709470f16a769226078e656e9fc94 Mon Sep 17 00:00:00 2001
From: Kannan <74587271+kannans24@users.noreply.github.com>
Date: Thu, 18 Nov 2021 13:51:17 +0530
Subject: [PATCH 7/9] Update Jenkinsfile

Logging
---
 Jenkinsfile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index a780d8de..a897bd9b 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -20,7 +20,10 @@ String platform='Install';
 			// 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+'/files'
             String branchCommitDetails = bat returnStdout: true, script: 'curl -H "Accept: application/vnd.github.v3+json" -u SyncfusionBuild:' + env.GithubBuildAutomation_PrivateToken + " " + branchCommit
-		echo branchCommitDetails
+		echo branchCommitDetails.split('\n')[0]
+		   echo branchCommitDetails.split('\n')[1]
+		   echo branchCommitDetails.split('\n')[2]
+		   
             def ChangeFiles= branchCommitDetails.split('\n')[2];
 		   echo "File changes"
 		   echo ChangeFiles;

From a6a5b1c75f12cf3df1eb822d59458ce2c98c66cb Mon Sep 17 00:00:00 2001
From: Kannan <74587271+kannans24@users.noreply.github.com>
Date: Thu, 18 Nov 2021 13:53:17 +0530
Subject: [PATCH 8/9] Update Jenkinsfile

Logging
---
 Jenkinsfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index a897bd9b..6f1dabe9 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -20,7 +20,8 @@ String platform='Install';
 			// 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+'/files'
             String branchCommitDetails = bat returnStdout: true, script: 'curl -H "Accept: application/vnd.github.v3+json" -u SyncfusionBuild:' + env.GithubBuildAutomation_PrivateToken + " " + branchCommit
-		echo branchCommitDetails.split('\n')[0]
+		echo branchCommitDetails
+		   echo branchCommitDetails.split('\n')[0]
 		   echo branchCommitDetails.split('\n')[1]
 		   echo branchCommitDetails.split('\n')[2]
 		   

From 77bf5f1bd1fda8a8b72cb46bd1b2b21ad5a43a62 Mon Sep 17 00:00:00 2001
From: Kannan <74587271+kannans24@users.noreply.github.com>
Date: Thu, 18 Nov 2021 15:13:28 +0530
Subject: [PATCH 9/9] Update Jenkinsfile

Fixed file changed items
---
 Jenkinsfile | 17 ++++-------------
 1 file changed, 4 insertions(+), 13 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 6f1dabe9..5bd40901 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -17,23 +17,14 @@ 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+'/files'
+			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
-		echo branchCommitDetails
-		   echo branchCommitDetails.split('\n')[0]
-		   echo branchCommitDetails.split('\n')[1]
-		   echo branchCommitDetails.split('\n')[2]
-		   
-            def ChangeFiles= branchCommitDetails.split('\n')[2];
-		   echo "File changes"
-		   echo ChangeFiles;
-            ChangeFiles = ChangeFiles.split('"filename":')
+		
+            
+            def ChangeFiles= branchCommitDetails.split('"filename": ');
 
             for (int i= 1; i < ChangeFiles.size();i++)
             {
-		    echo i
-		    echo ChangeFiles[i]
             def ChangeFile= ChangeFiles[i].split(',')[0].replace('"', '')
             Content += env.WORKSPACE + "\\Spell-Checker\\" + ChangeFile + "\r\n";
             }