From cb8fe4567a4104d6f71de4f595934442aac03d0a Mon Sep 17 00:00:00 2001 From: Kumaresansyncfusion Date: Wed, 12 Aug 2026 16:49:53 +0530 Subject: [PATCH 01/10] Update Jenkinsfile --- Jenkinsfile | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 950546cf0..14cac0aa9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,14 +2,14 @@ node('content') { timestamps { - - def Content=""; - env.PATH = "${ProgramFiles}"+"\\Git\\mingw64\\bin;${env.PATH}" - timeout(time: 7200000, unit: 'MILLISECONDS') { -String platform='chart-sdk'; +String platform='file-formats'; try { + + def Content=""; + env.PATH = "${ProgramFiles}"+"\\Git\\mingw64\\bin;${env.PATH}" + //Clone scm repository in Workspace source directory stage ('Checkout') { @@ -17,11 +17,11 @@ String platform='chart-sdk'; { checkout scm - 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": '); @@ -53,7 +53,6 @@ String platform='chart-sdk'; checkout([$class: 'GitSCM', branches: [[name: '*/development']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'ug_spellchecker']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: env.githubCredentialId, url: 'https://github.com/syncfusion-content/ug_spellchecker.git']]]) } - } catch(Exception e) @@ -71,12 +70,6 @@ if(currentBuild.result != 'FAILURE') bat 'powershell.exe -ExecutionPolicy ByPass -File '+env.WORKSPACE+"/ug_spellchecker/build.ps1 -Script "+env.WORKSPACE+"/ug_spellchecker/build.cake -Target build -Platform \""+platform+"\" -Targetbranch "+env.githubTargetBranch+" -Branch "+'"'+env.githubSourceBranch+'"' } - def files = findFiles(glob: '**/cireports/errorlogs/*.txt') - - if(files.size() > 0) - { - currentBuild.result = 'FAILURE' - } } catch(Exception e) From 9ca31275a2fba79ccf688d756b3273288d40d9cc Mon Sep 17 00:00:00 2001 From: Kumaresansyncfusion Date: Thu, 13 Aug 2026 16:38:56 +0530 Subject: [PATCH 02/10] Update Jenkinsfile --- Jenkinsfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 14cac0aa9..bbc618fcd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,18 @@ String platform='file-formats'; { dir('Spell-Checker') { - checkout scm + checkout([ + $class: 'GitSCM', + branches: [[name: "${env.githubSourceBranch}"]], + extensions: [ + [$class: 'RelativeTargetDirectory', relativeTargetDir: 'ug_spellchecker'], + [$class: 'CheckoutOption', timeout: 30] + ], + userRemoteConfigs: [[ + credentialsId: env.githubCredentialId, + url: 'https://github.com/syncfusion-content/chart-sdk-docs.git' + ]] + ]) def page = 1 while(true) From 15c1c62e84b2a938e328764b2380ed79d6eb45ee Mon Sep 17 00:00:00 2001 From: Kumaresansyncfusion Date: Thu, 13 Aug 2026 17:59:33 +0530 Subject: [PATCH 03/10] Update Jenkinsfile --- Jenkinsfile | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bbc618fcd..f5daca82c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,19 +15,8 @@ String platform='file-formats'; { dir('Spell-Checker') { - checkout([ - $class: 'GitSCM', - branches: [[name: "${env.githubSourceBranch}"]], - extensions: [ - [$class: 'RelativeTargetDirectory', relativeTargetDir: 'ug_spellchecker'], - [$class: 'CheckoutOption', timeout: 30] - ], - userRemoteConfigs: [[ - credentialsId: env.githubCredentialId, - url: 'https://github.com/syncfusion-content/chart-sdk-docs.git' - ]] - ]) - + deleteDir() + checkout scm def page = 1 while(true) { From 25e055ddd7d9500aeed79989d04a6103334fe5cc Mon Sep 17 00:00:00 2001 From: Kumaresansyncfusion Date: Thu, 13 Aug 2026 18:16:08 +0530 Subject: [PATCH 04/10] Update Jenkinsfile --- Jenkinsfile | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f5daca82c..fc9aa3ad6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,8 +15,23 @@ String platform='file-formats'; { dir('Spell-Checker') { - deleteDir() - checkout scm + + checkout([ + $class: 'GitSCM', + branches: [[name: "${env.githubSourceBranch}"]], + userRemoteConfigs: [[ + credentialsId: env.githubCredentialId, + url: 'https://github.com/syncfusion-content/chart-sdk-docs.git' + ]], + extensions: [ + cloneOption([ + depth: 1, + noTags: true, + shallow: true, + timeout: 30 // <-- increase from default 10 + ]) + ] + ]) def page = 1 while(true) { From e8795b1763323d344979def959efbd30fbc978ce Mon Sep 17 00:00:00 2001 From: Kumaresansyncfusion Date: Thu, 13 Aug 2026 18:31:52 +0530 Subject: [PATCH 05/10] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index fc9aa3ad6..ce74da4e7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -node('content') +node('Maui') { timestamps { From 833e3792384773255db95733bd0f43107243822d Mon Sep 17 00:00:00 2001 From: Kumaresansyncfusion Date: Thu, 13 Aug 2026 19:04:02 +0530 Subject: [PATCH 06/10] Update Jenkinsfile --- Jenkinsfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ce74da4e7..18466d308 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -node('Maui') +node('content') { timestamps { @@ -13,9 +13,9 @@ String platform='file-formats'; //Clone scm repository in Workspace source directory stage ('Checkout') { - dir('Spell-Checker') + ('S') { - + echo "checkout starting" checkout([ $class: 'GitSCM', branches: [[name: "${env.githubSourceBranch}"]], @@ -32,9 +32,11 @@ String platform='file-formats'; ]) ] ]) + echo "Checkout finish" def page = 1 while(true) { + echo "get commit details" 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 @@ -63,9 +65,9 @@ String platform='file-formats'; } } - + echo "Checkout UG spellchecker" //Checkout the ug_spellchecker from development Source - checkout([$class: 'GitSCM', branches: [[name: '*/development']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'ug_spellchecker']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: env.githubCredentialId, url: 'https://github.com/syncfusion-content/ug_spellchecker.git']]]) + checkout([$class: 'GitSCM', branches: [[name: '*/development']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'ug_spell']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: env.githubCredentialId, url: 'https://github.com/syncfusion-content/ug_spellchecker.git']]]) } } @@ -78,6 +80,7 @@ String platform='file-formats'; if(currentBuild.result != 'FAILURE') { stage 'Build Source' + echo "Build start" try { gitlabCommitStatus("Build") From cdfe4170b9d136e765247f3d4e964d2ba85f7d64 Mon Sep 17 00:00:00 2001 From: Kumaresansyncfusion Date: Thu, 13 Aug 2026 19:08:04 +0530 Subject: [PATCH 07/10] Update Jenkinsfile --- Jenkinsfile | 236 +++++++++++++++++++++++++++++----------------------- 1 file changed, 134 insertions(+), 102 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 18466d308..317eb5f80 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,109 +1,141 @@ node('content') -{ -timestamps +{ + timestamps { - timeout(time: 7200000, unit: 'MILLISECONDS') { -String platform='file-formats'; - try - { - - def Content=""; - env.PATH = "${ProgramFiles}"+"\\Git\\mingw64\\bin;${env.PATH}" - - //Clone scm repository in Workspace source directory - stage ('Checkout') - { - ('S') - { - echo "checkout starting" - checkout([ - $class: 'GitSCM', - branches: [[name: "${env.githubSourceBranch}"]], - userRemoteConfigs: [[ - credentialsId: env.githubCredentialId, - url: 'https://github.com/syncfusion-content/chart-sdk-docs.git' - ]], - extensions: [ - cloneOption([ - depth: 1, - noTags: true, - shallow: true, - timeout: 30 // <-- increase from default 10 - ]) - ] - ]) - echo "Checkout finish" - def page = 1 - while(true) - { - echo "get commit details" - 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": '); - - for (int i= 1; i < ChangeFiles.size();i++) - { - def ChangeFile= ChangeFiles[i].split(',')[0].replace('"', '') - Content += env.WORKSPACE + "\\Spell-Checker\\" + ChangeFile + "\r\n"; - } + timeout(time: 7200000, unit: 'MILLISECONDS') { + + def platform = 'file-formats' + def Content = "" + env.PATH = "${ProgramFiles}" + "\\Git\\mingw64\\bin;${env.PATH}" + + try { + // ---------- Stage 1: Checkout ---------- + stage('Checkout') { + dir('Spell-Checker') { + echo "Checkout starting" + + // Wipe any leftover state from a previous failed run + deleteDir() + + checkout([ + $class: 'GitSCM', + branches: [[name: "*/${env.githubSourceBranch}"]], + userRemoteConfigs: [[ + credentialsId: env.githubCredentialId, + url: 'https://github.com/syncfusion-content/chart-sdk-docs.git' + ]], + extensions: [ + cloneOption([ + depth: 1, + noTags: true, + shallow: true, + timeout: 30 + ]) + ] + ]) + + echo "Checkout finish" + + // ---------- Page through PR changed files ---------- + def page = 1 + while (true) { + echo "Get commit details, page ${page}" - // Last page - if((ChangeFiles.size() - 1) < 100) - { - break - } - page++ - } - - if (Content) { - writeFile file: env.WORKSPACE+"/cireports/content.txt", text: Content + def apiUrl = 'https://api.github.com/repos/syncfusion-content/' + + env.githubSourceRepoHttpUrl.split('/')[-1] + + '/pulls/' + env.pullRequestId + + '/files?per_page=100&page=' + page + + def branchCommitDetails = bat returnStdout: true, script: + 'curl -H "Accept: application/vnd.github.v3+json" ' + + '-u SyncfusionBuild:' + env.GithubBuildAutomation_PrivateToken + + ' ' + apiUrl + + def ChangeFiles = branchCommitDetails.split('"filename": ') + + for (int i = 1; i < ChangeFiles.size(); i++) { + def ChangeFile = ChangeFiles[i].split(',')[0].replace('"', '') + Content += env.WORKSPACE + "\\Spell-Checker\\" + ChangeFile + "\r\n" } - else { - writeFile file: env.WORKSPACE+"/cireports/content.txt", text: "There are no filepaths found for this commit." + + // Last page + if ((ChangeFiles.size() - 1) < 100) { + break } - - } - echo "Checkout UG spellchecker" - //Checkout the ug_spellchecker from development Source - checkout([$class: 'GitSCM', branches: [[name: '*/development']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'ug_spell']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: env.githubCredentialId, url: 'https://github.com/syncfusion-content/ug_spellchecker.git']]]) - - } - } - - catch(Exception e) - { - currentBuild.result = 'FAILURE' - } - -if(currentBuild.result != 'FAILURE') -{ - stage 'Build Source' - echo "Build start" - try - { - gitlabCommitStatus("Build") - { - bat 'powershell.exe -ExecutionPolicy ByPass -File '+env.WORKSPACE+"/ug_spellchecker/build.ps1 -Script "+env.WORKSPACE+"/ug_spellchecker/build.cake -Target build -Platform \""+platform+"\" -Targetbranch "+env.githubTargetBranch+" -Branch "+'"'+env.githubSourceBranch+'"' - } - - - } - catch(Exception e) - { - currentBuild.result = 'FAILURE' - } -} - - stage 'Delete Workspace' - - def files = findFiles(glob: '**/cireports/*.*') - - if(files.size() > 0) - { - archiveArtifacts artifacts: 'cireports/', excludes: null + page++ + } + + // Ensure ccireports exists + bat 'if not exist "' + env.WORKSPACE + '\\cireports" mkdir "' + env.WORKSPACE + '\\cireports"' + + if (Content) { + writeFile file: env.WORKSPACE + "/cireports/content.txt", text: Content + echo "Wrote content.txt with ${Content.split('\r\n').size() - 1} entries" + } else { + writeFile file: env.WORKSPACE + "/cireports/content.txt", + text: "There are no filepaths found for this commit." + echo "No files found in PR" + } + } + + // ---------- Stage 2: Pull ug_spell (formerly ug_spellchecker) ---------- + echo "Checkout UG spellchecker" + checkout([ + $class: 'GitSCM', + branches: [[name: '*/development']], + doGenerateSubmoduleConfigurations: false, + extensions: [ + [$class: 'RelativeTargetDirectory', relativeTargetDir: 'ug_spell'], + [$class: 'CloneOption', depth: 1, shallow: true, noTags: true, timeout: 30] + ], + submoduleCfg: [], + userRemoteConfigs: [[ + credentialsId: env.githubCredentialId, + url: 'https://github.com/syncfusion-content/ug_spellchecker.git' + ]] + ]) + } + } catch (Exception e) { + echo "Checkout stage failed: ${e.message}" + currentBuild.result = 'FAILURE' + } + + // ---------- Stage 3: Build ---------- + if (currentBuild.result != 'FAILURE') { + stage('Build Source') { + echo "Build start" + try { + gitlabCommitStatus("Build") { + bat 'powershell.exe -ExecutionPolicy ByPass -File ' + + env.WORKSPACE + "/ug_spell/build.ps1 " + + '-Script ' + env.WORKSPACE + "/ug_spell/build.cake " + + '-Target build ' + + '-Platform "' + platform + '" ' + + '-Targetbranch ' + env.githubTargetBranch + ' ' + + '-Branch "' + env.githubSourceBranch + '"' + } + + def files = findFiles(glob: '**/cireports/errorlogs/*.txt') + if (files.size() > 0) { + currentBuild.result = 'FAILURE' + } + } catch (Exception e) { + echo "Build stage failed: ${e.message}" + currentBuild.result = 'FAILURE' + } + } + } + + // ---------- Stage 4: Delete Workspace ---------- + stage('Delete Workspace') { + def files = findFiles(glob: '**/cireports/*.*') + + if (files.size() > 0) { + archiveArtifacts artifacts: 'cireports/', excludes: null + } + + step([$class: 'WsCleanup']) + } } - step([$class: 'WsCleanup']) } - } + } } From fc29714110eb097a6b00e706d1293b584d358a58 Mon Sep 17 00:00:00 2001 From: Kumaresansyncfusion Date: Mon, 17 Aug 2026 16:36:18 +0530 Subject: [PATCH 08/10] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 317eb5f80..cc464e3e0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -node('content') +node('Maui') { timestamps { From 4132b7a58c272eb516bb34033d1dc989eee9d7ef Mon Sep 17 00:00:00 2001 From: Kumaresansyncfusion Date: Mon, 17 Aug 2026 17:01:36 +0530 Subject: [PATCH 09/10] Update Jenkinsfile --- Jenkinsfile | 201 ++++++++++++++++++++++------------------------------ 1 file changed, 84 insertions(+), 117 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cc464e3e0..45a8f2fa5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,23 +1,21 @@ node('Maui') -{ - timestamps +{ +timestamps { - timeout(time: 7200000, unit: 'MILLISECONDS') { - - def platform = 'file-formats' - def Content = "" - env.PATH = "${ProgramFiles}" + "\\Git\\mingw64\\bin;${env.PATH}" - - try { - // ---------- Stage 1: Checkout ---------- - stage('Checkout') { - dir('Spell-Checker') { - echo "Checkout starting" - - // Wipe any leftover state from a previous failed run - deleteDir() - - checkout([ + timeout(time: 7200000, unit: 'MILLISECONDS') { +String platform='chart-sdk'; + try + { + + def Content=""; + env.PATH = "${ProgramFiles}"+"\\Git\\mingw64\\bin;${env.PATH}" + + //Clone scm repository in Workspace source directory + stage ('Checkout') + { + dir('Spell-Checker') + { + checkout([ $class: 'GitSCM', branches: [[name: "*/${env.githubSourceBranch}"]], userRemoteConfigs: [[ @@ -35,107 +33,76 @@ node('Maui') ]) echo "Checkout finish" + + 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": '); + + for (int i= 1; i < ChangeFiles.size();i++) + { + def ChangeFile= ChangeFiles[i].split(',')[0].replace('"', '') + Content += env.WORKSPACE + "\\Spell-Checker\\" + ChangeFile + "\r\n"; + } - // ---------- Page through PR changed files ---------- - def page = 1 - while (true) { - echo "Get commit details, page ${page}" - - def apiUrl = 'https://api.github.com/repos/syncfusion-content/' - + env.githubSourceRepoHttpUrl.split('/')[-1] - + '/pulls/' + env.pullRequestId - + '/files?per_page=100&page=' + page - - def branchCommitDetails = bat returnStdout: true, script: - 'curl -H "Accept: application/vnd.github.v3+json" ' - + '-u SyncfusionBuild:' + env.GithubBuildAutomation_PrivateToken - + ' ' + apiUrl - - def ChangeFiles = branchCommitDetails.split('"filename": ') - - for (int i = 1; i < ChangeFiles.size(); i++) { - 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 } - - // Last page - if ((ChangeFiles.size() - 1) < 100) { - break + else { + writeFile file: env.WORKSPACE+"/cireports/content.txt", text: "There are no filepaths found for this commit." } - page++ - } - - // Ensure ccireports exists - bat 'if not exist "' + env.WORKSPACE + '\\cireports" mkdir "' + env.WORKSPACE + '\\cireports"' - - if (Content) { - writeFile file: env.WORKSPACE + "/cireports/content.txt", text: Content - echo "Wrote content.txt with ${Content.split('\r\n').size() - 1} entries" - } else { - writeFile file: env.WORKSPACE + "/cireports/content.txt", - text: "There are no filepaths found for this commit." - echo "No files found in PR" - } - } - - // ---------- Stage 2: Pull ug_spell (formerly ug_spellchecker) ---------- - echo "Checkout UG spellchecker" - checkout([ - $class: 'GitSCM', - branches: [[name: '*/development']], - doGenerateSubmoduleConfigurations: false, - extensions: [ - [$class: 'RelativeTargetDirectory', relativeTargetDir: 'ug_spell'], - [$class: 'CloneOption', depth: 1, shallow: true, noTags: true, timeout: 30] - ], - submoduleCfg: [], - userRemoteConfigs: [[ - credentialsId: env.githubCredentialId, - url: 'https://github.com/syncfusion-content/ug_spellchecker.git' - ]] - ]) - } - } catch (Exception e) { - echo "Checkout stage failed: ${e.message}" - currentBuild.result = 'FAILURE' - } - - // ---------- Stage 3: Build ---------- - if (currentBuild.result != 'FAILURE') { - stage('Build Source') { - echo "Build start" - try { - gitlabCommitStatus("Build") { - bat 'powershell.exe -ExecutionPolicy ByPass -File ' - + env.WORKSPACE + "/ug_spell/build.ps1 " - + '-Script ' + env.WORKSPACE + "/ug_spell/build.cake " - + '-Target build ' - + '-Platform "' + platform + '" ' - + '-Targetbranch ' + env.githubTargetBranch + ' ' - + '-Branch "' + env.githubSourceBranch + '"' - } - - def files = findFiles(glob: '**/cireports/errorlogs/*.txt') - if (files.size() > 0) { - currentBuild.result = 'FAILURE' - } - } catch (Exception e) { - echo "Build stage failed: ${e.message}" - currentBuild.result = 'FAILURE' - } - } - } - - // ---------- Stage 4: Delete Workspace ---------- - stage('Delete Workspace') { - def files = findFiles(glob: '**/cireports/*.*') - - if (files.size() > 0) { - archiveArtifacts artifacts: 'cireports/', excludes: null - } - - step([$class: 'WsCleanup']) - } + + } + + //Checkout the ug_spellchecker from development Source + checkout([$class: 'GitSCM', branches: [[name: '*/development']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'ug_spellchecker']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: env.githubCredentialId, url: 'https://github.com/syncfusion-content/ug_spellchecker.git']]]) + + } + } + + catch(Exception e) + { + currentBuild.result = 'FAILURE' + } + +if(currentBuild.result != 'FAILURE') +{ + stage 'Build Source' + try + { + gitlabCommitStatus("Build") + { + bat 'powershell.exe -ExecutionPolicy ByPass -File '+env.WORKSPACE+"/ug_spellchecker/build.ps1 -Script "+env.WORKSPACE+"/ug_spellchecker/build.cake -Target build -Platform \""+platform+"\" -Targetbranch "+env.githubTargetBranch+" -Branch "+'"'+env.githubSourceBranch+'"' + } + + + } + catch(Exception e) + { + currentBuild.result = 'FAILURE' + } +} + + stage 'Delete Workspace' + + def files = findFiles(glob: '**/cireports/*.*') + + if(files.size() > 0) + { + archiveArtifacts artifacts: 'cireports/', excludes: null } - } + step([$class: 'WsCleanup']) } + } } From d517adbcb8a94cdc179d046e211bffd45438f15a Mon Sep 17 00:00:00 2001 From: Kumaresansyncfusion Date: Mon, 17 Aug 2026 17:21:27 +0530 Subject: [PATCH 10/10] Update Jenkinsfile --- Jenkinsfile | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 45a8f2fa5..322b58628 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,24 +15,7 @@ String platform='chart-sdk'; { dir('Spell-Checker') { - checkout([ - $class: 'GitSCM', - branches: [[name: "*/${env.githubSourceBranch}"]], - userRemoteConfigs: [[ - credentialsId: env.githubCredentialId, - url: 'https://github.com/syncfusion-content/chart-sdk-docs.git' - ]], - extensions: [ - cloneOption([ - depth: 1, - noTags: true, - shallow: true, - timeout: 30 - ]) - ] - ]) - - echo "Checkout finish" + checkout scm def page = 1 while(true)