File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,9 @@ String platform='angular-api';
1717 {
1818 checkout scm
1919
20- def branchCommit = ' " ' + ' https://api.github.com/repos/syncfusion-content/angular-api-docs /pulls/' + env. pullRequestId + ' /files'
20+ def branchCommit = ' https://api.github.com/repos/syncfusion-content/' + env . githubSourceRepoHttpUrl . split( ' / ' )[env . githubSourceRepoHttpUrl . split( ' / ' ) . size() - 1 ] + ' /pulls/' + env. pullRequestId + ' /files'
2121 String branchCommitDetails = bat returnStdout : true , script : ' curl -H "Accept: application/vnd.github.v3+json" -u SyncfusionBuild:' + env.GithubBuildAutomation_PrivateToken + " " + branchCommit
22-
2322 def ChangeFiles = branchCommitDetails. split(' "filename": ' );
24-
2523 for (int i= 1 ; i < ChangeFiles . size();i++ )
2624 {
2725 def ChangeFile = ChangeFiles [i]. split(' ,' )[0 ]. replace(' "' , ' ' )
@@ -48,7 +46,6 @@ String platform='angular-api';
4846 {
4947 currentBuild. result = ' FAILURE'
5048 }
51-
5249if (currentBuild. result != ' FAILURE' )
5350{
5451 stage ' Build Source'
@@ -73,10 +70,9 @@ if(currentBuild.result != 'FAILURE')
7370 }
7471}
7572
76- stage ' Delete Workspace'
77-
73+ stage ' Delete Workspace'
7874 def files = findFiles(glob : ' **/cireports/*.*' )
79-
75+
8076 if (files. size() > 0 )
8177 {
8278 archiveArtifacts artifacts : ' cireports/' , excludes : null
You can’t perform that action at this time.
0 commit comments