Skip to content

Commit 06a2b61

Browse files
Merge pull request #52 from Syncfusion-Content/development
DOCINFRA-2341_merged_using_automation
2 parents 723863e + c3dac1f commit 06a2b61

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Jenkinsfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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-
5249
if(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

0 commit comments

Comments
 (0)