@@ -8,7 +8,7 @@ def runtests(version)
88 dir(version){
99 try {
1010 stage('checkout_' + version){
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- swift.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-swift.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'
@@ -41,7 +41,7 @@ def runtests(version)
4141def makerelease() {
4242 try {
4343 stage('Merge master to release'){
44- 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- swift.git']]])
44+ 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-swift.git']]])
4545 sh "git config user.email '
[email protected] '"
4646 sh "git config user.name 'jenkins'"
4747 sh "git checkout --merge release"
@@ -50,19 +50,19 @@ def makerelease() {
5050 sh "git diff --name-status"
5151 sh 'git commit -am "Merged master branch to release" || exit 0'
5252 withCredentials([usernamePassword(credentialsId: '361885ba-9425-4230-950e-0af201d90547', passwordVariable: 'gitPass', usernameVariable: 'gitUsername')]) {
53- sh "git push https://$gitUsername:
[email protected] /words-cloud/words-cloud-
sdk- swift.git release"
53+ sh "git push https://$gitUsername:
[email protected] /words-cloud/words-cloud-swift.git release"
5454 }
5555 }
5656
5757 stage('Add version tag'){
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-sdk- swift.git']]])
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-swift.git']]])
5959
6060 sh "git config user.email \"
[email protected] \""
6161 sh "git config user.name \"jenkins\""
6262 sh "git tag -a ${tagVersion} -m 'version ${tagVersion}' | exit 0"
6363
6464 withCredentials([usernamePassword(credentialsId: '361885ba-9425-4230-950e-0af201d90547', passwordVariable: 'gitPass', usernameVariable: 'gitUsername')]) {
65- sh "git push https://$gitUsername:
[email protected] /words-cloud/words-cloud-
sdk- swift.git ${tagVersion}"
65+ sh "git push https://$gitUsername:
[email protected] /words-cloud/words-cloud-swift.git ${tagVersion}"
6666 }
6767 }
6868 } finally {
0 commit comments