Skip to content

Commit fee2e5a

Browse files
Update release CI/CD
1 parent 688a42e commit fee2e5a

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

JenkinsfileRelease

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,5 @@
11
parameters {
22
string(name: 'tagVersion', description: 'new version number for tag')
3-
string(name: 'testServerUrl', defaultValue: 'https://api-qa.aspose.cloud', description: 'server url')
4-
}
5-
6-
def runtests()
7-
{
8-
dir('dart') {
9-
try {
10-
stage('checkout'){
11-
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'LocalBranch', localBranch: "**"]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '361885ba-9425-4230-950e-0af201d90547', url: 'https://git.auckland.dynabic.com/words-cloud/words-cloud-dart.git']]])
12-
withCredentials([usernamePassword(credentialsId: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', passwordVariable: 'ClientSecret', usernameVariable: 'ClientId')]) {
13-
sh 'mkdir -p settings'
14-
sh 'echo "{\\"ClientId\\": \\"$ClientId\\", \\"ClientSecret\\": \\"$ClientSecret\\", \\"BaseUrl\\": \\"$testServerUrl\\"}" > settings/servercreds.json'
15-
}
16-
}
17-
18-
docker.image('dart:2.19.4').inside {
19-
stage('prepare'){
20-
sh "dart pub get"
21-
sh "dart pub global activate junitreport"
22-
}
23-
24-
stage('lint'){
25-
sh "dart analyze --fatal-warnings ."
26-
}
27-
28-
stage('tests'){
29-
try {
30-
sh "dart run test test/aspose_words_cloud_tests.dart --concurrency=1 --no-color --reporter expanded --file-reporter json:testReport.json"
31-
} finally {
32-
sh "dart pub global run junitreport:tojunit --input testReport.json --output testReport.xml"
33-
junit 'testReport.xml'
34-
}
35-
}
36-
}
37-
} finally {
38-
deleteDir()
39-
}
40-
}
413
}
424

435
def makerelease() {
@@ -73,6 +35,5 @@ def makerelease() {
7335

7436
node('words-linux') {
7537
cleanWs()
76-
runtests()
7738
makerelease()
7839
}

0 commit comments

Comments
 (0)