|
1 | 1 | parameters { |
2 | 2 | string(name: 'version', defaultValue: '19.10.0', description: 'version of gem') |
3 | 3 | string(name: 'deployKey', defaultValue: 'xxx', description: 'key') |
4 | | - string(name: 'testServerUrl', defaultValue: 'https://api-qa.aspose.cloud', description: 'server url') |
5 | | - string(name: 'StartFromStage', defaultValue: '0', description: '0 based index of stage which will be started') |
| 4 | + string(name: 'apiUrl', defaultValue: 'https://api-qa.aspose.cloud', description: 'server url') |
| 5 | + string(name: 'StartFromStage', defaultValue: '0', description: '0 based index of stage which will be started') |
6 | 6 | } |
7 | 7 | node('words-linux') { |
8 | 8 | try { |
@@ -40,14 +40,15 @@ def testGemLocally() |
40 | 40 | checkout([$class: 'GitSCM', branches: [[name: '*/testPackage']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'LocalBranch', localBranch: "**"]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '361885ba-9425-4230-950e-0af201d90547', url: 'https://git.auckland.dynabic.com/words-cloud/words-cloud-ruby.git']]]) |
41 | 41 | withCredentials([usernamePassword(credentialsId: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', passwordVariable: 'ClientSecret', usernameVariable: 'ClientId')]) { |
42 | 42 | sh 'mkdir -p Settings' |
43 | | - sh 'echo "{\\"ClientId\\": \\"$ClientId\\",\\"ClientSecret\\": \\"$ClientSecret\\", \\"BaseUrl\\": \\"$apiUrl\\", \\"Debug\\" : $debugMode}" > Settings/servercreds.json' |
| 43 | + sh 'echo "{\\"ClientId\\": \\"$ClientId\\",\\"ClientSecret\\": \\"$ClientSecret\\", \\"BaseUrl\\": \\"$apiUrl\\"}" > Settings/servercreds.json' |
44 | 44 | } |
45 | 45 | } |
46 | 46 |
|
47 | 47 | stage('3:build gem and test'){ |
48 | | - docker.image('ruby:2.4').inside('-u root'){ |
| 48 | + docker.image('ruby:2.7').inside('-u root'){ |
49 | 49 | stage('upload to rubygems'){ |
50 | 50 | sh "gem build aspose_words_cloud.gemspec" |
| 51 | + sh "gem install nokogiri -v 1.10.10" |
51 | 52 | sh "gem install ./aspose_words_cloud-${version}.gem" |
52 | 53 | } |
53 | 54 |
|
@@ -79,7 +80,7 @@ def publishGem() |
79 | 80 | } |
80 | 81 |
|
81 | 82 | stage('5:build gem publish'){ |
82 | | - docker.image('ruby:2.4').inside('-u root'){ |
| 83 | + docker.image('ruby:2.7').inside('-u root'){ |
83 | 84 | stage('upload to rubygems'){ |
84 | 85 | sh "gem build aspose_words_cloud.gemspec" |
85 | 86 | sh "mkdir ~/.gem" |
|
0 commit comments