Skip to content

Commit f93c443

Browse files
author
yaroslaw.ekimov
committed
Merge branch 'master' into release
2 parents b87021d + 90bf3be commit f93c443

File tree

2 files changed

+6
-28
lines changed

2 files changed

+6
-28
lines changed

Jenkinsfile

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,6 @@ node('words-linux') {
4646
cleanWs()
4747
if (!params.branch.contains("release")) {
4848
runtests("java-sdk")
49-
50-
stage('wait for publish confirmation'){
51-
timeout(time:1, unit:'DAYS') {
52-
input message:'Publish packet?'
53-
}
54-
}
55-
56-
stage('Merge master to release'){
57-
if (params.branch.contains("master")) {
58-
checkout([$class: 'GitSCM', branches: [[name: '*/release']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'LocalBranch', localBranch: "**"]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '361885ba-9425-4230-950e-0af201d90547', url: 'https://git.auckland.dynabic.com/words-cloud/words-cloud-java.git']]])
59-
sh "git config user.email '[email protected]'"
60-
sh "git config user.name 'jenkins'"
61-
sh "git checkout --merge release"
62-
sh "git reset --hard origin/release"
63-
sh "git merge --no-ff --allow-unrelated-histories origin/master"
64-
sh "git diff --name-status"
65-
sh 'git commit -am "Merged master branch to release" || exit 0'
66-
withCredentials([usernamePassword(credentialsId: '361885ba-9425-4230-950e-0af201d90547', passwordVariable: 'gitPass', usernameVariable: 'gitUsername')]) {
67-
sh "git push https://$gitUsername:$gitPass@git.auckland.dynabic.com/words-cloud/words-cloud-java.git release"
68-
}
69-
}
70-
}
7149
}
7250

7351
}

src/test/java/com/aspose/words/cloud/DocumentElements/TestTables.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ public void testGetBorder() throws ApiException, FileNotFoundException {
129129
String fileName = "TablesGet.docx";
130130
String remoteName = "TestGetBorder.docx";
131131
String sourcePath = "sections/0/tables/2/rows/0";
132-
Integer index = 0;
132+
String borderType = "left";
133133

134134
TestInitializer.UploadFile(Paths.get(TestInitializer.LocalTestFolder, testFolder, fileName).toString(), Paths.get(TestInitializer.RemoteTestFolder, testFolder, remoteName).toString().replace("\\", "/"));
135135

136-
GetBorderRequest request = new GetBorderRequest(remoteName, sourcePath, index,
136+
GetBorderRequest request = new GetBorderRequest(remoteName, sourcePath, borderType,
137137
Paths.get(TestInitializer.RemoteTestFolder, testFolder).toString(), null, null,
138138
null);
139139

@@ -563,13 +563,13 @@ public void testUpdateTableRowFormat() throws ApiException, FileNotFoundExceptio
563563
public void testDeleteBorder() throws ApiException, FileNotFoundException {
564564
String fileName = "TablesGet.docx";
565565
String remoteName = "TestDeleteTableBorder.docx";
566-
Integer index = 0;
566+
String borderType = "left";
567567
String sourcePath = "tables/1/rows/0/cells/0/";
568568
String destName = Paths.get(TestInitializer.RemoteTestOut, remoteName).toString();
569569

570570
TestInitializer.UploadFile(Paths.get(TestInitializer.LocalTestFolder, testFolder, fileName).toString(), Paths.get(TestInitializer.RemoteTestFolder, testFolder, remoteName).toString().replace("\\", "/"));
571571

572-
DeleteBorderRequest request = new DeleteBorderRequest(remoteName, sourcePath, index,
572+
DeleteBorderRequest request = new DeleteBorderRequest(remoteName, sourcePath, borderType,
573573
Paths.get(TestInitializer.RemoteTestFolder, testFolder).toString(), null, null,
574574
null, destName, null, null);
575575

@@ -604,14 +604,14 @@ public void testDeleteBorders() throws ApiException, FileNotFoundException {
604604
public void testUpdateBorder() throws ApiException, FileNotFoundException {
605605
String fileName = "TablesGet.docx";
606606
String remoteName = "TestUpdateBorder.docx";
607-
Integer index = 0;
607+
String borderType = "left";
608608
String sourcePath = "tables/1/rows/0/cells/0/";
609609
Border body = new Border().borderType(Border.BorderTypeEnum.LEFT).color(new XmlColor().alpha(2)).distanceFromText(6.0)
610610
.lineStyle(Border.LineStyleEnum.DASHDOTSTROKER).lineWidth(2.0).shadow(true);
611611

612612
TestInitializer.UploadFile(Paths.get(TestInitializer.LocalTestFolder, testFolder, fileName).toString(), Paths.get(TestInitializer.RemoteTestFolder, testFolder, remoteName).toString().replace("\\", "/"));
613613

614-
UpdateBorderRequest request = new UpdateBorderRequest(remoteName, body, sourcePath, index,
614+
UpdateBorderRequest request = new UpdateBorderRequest(remoteName, body, sourcePath, borderType,
615615
Paths.get(TestInitializer.RemoteTestFolder, testFolder).toString(), null, null,
616616
null, null, null, null);
617617

0 commit comments

Comments
 (0)