@@ -8,14 +8,14 @@ def runtests()
88 dir('dart') {
99 try {
1010 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-sdk- dart.git']]])
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']]])
1212 withCredentials([usernamePassword(credentialsId: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', passwordVariable: 'ClientSecret', usernameVariable: 'ClientId')]) {
1313 sh 'mkdir -p settings'
1414 sh 'echo "{\\"ClientId\\": \\"$ClientId\\", \\"ClientSecret\\": \\"$ClientSecret\\", \\"BaseUrl\\": \\"$testServerUrl\\"}" > settings/servercreds.json'
1515 }
1616 }
1717
18- docker.image('google/dart:2.12.2 ').inside {
18+ docker.image('google/dart:2.14 ').inside {
1919 stage('prepare'){
2020 sh "pub get"
2121 sh "pub global activate junitreport"
@@ -43,7 +43,7 @@ def runtests()
4343def makerelease() {
4444 try {
4545 stage('merge'){
46- 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-sdk- dart.git']]])
46+ 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-dart.git']]])
4747 sh "git config user.email '
[email protected] '"
4848 sh "git config user.name 'jenkins'"
4949 sh "git checkout --merge release"
@@ -52,18 +52,18 @@ def makerelease() {
5252 sh "git diff --name-status"
5353 sh 'git commit -am "Merged master branch to release" || exit 0'
5454 withCredentials([usernamePassword(credentialsId: '361885ba-9425-4230-950e-0af201d90547', passwordVariable: 'gitPass', usernameVariable: 'gitUsername')]) {
55- sh "git push https://$gitUsername:
[email protected] /words-cloud/words-cloud-
sdk- dart.git release"
55+ sh "git push https://$gitUsername:
[email protected] /words-cloud/words-cloud-dart.git release"
5656 }
5757 }
5858
5959 stage('tag'){
60- 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-sdk- dart.git']]])
60+ 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-dart.git']]])
6161 sh "git config user.email \"
[email protected] \""
6262 sh "git config user.name \"jenkins\""
6363 sh "git tag -a ${tagVersion} -m 'version ${tagVersion}' | exit 0"
6464
6565 withCredentials([usernamePassword(credentialsId: '361885ba-9425-4230-950e-0af201d90547', passwordVariable: 'gitPass', usernameVariable: 'gitUsername')]) {
66- sh "git push https://$gitUsername:
[email protected] /words-cloud/words-cloud-
sdk- dart.git ${tagVersion}"
66+ sh "git push https://$gitUsername:
[email protected] /words-cloud/words-cloud-dart.git ${tagVersion}"
6767 }
6868 }
6969 } finally {
0 commit comments