Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Jenkinsfile 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. pipeline {
  2. agent any
  3. environment {
  4. deployPath = "/var/www/vhosts/bizgaze.com/qa.Bizgaze.com"
  5. }
  6. stages {
  7. stage('Restore packages') {
  8. steps {
  9. dir('unibase/platform.tenants') {
  10. /*git credentialsId: 'bizgaze_ssh_key', url: 'https://code.bizgaze.com/unibase/tenants.git'*/
  11. checkout([$class: 'GitSCM',
  12. branches: [[name: '*/master' ]],
  13. extensions: scm.extensions,
  14. userRemoteConfigs: [[
  15. url: 'git@code.bizgaze.com:unibase/tenants.git',
  16. credentialsId: 'jenkins_ssh'
  17. ]]
  18. ])
  19. }
  20. dir('unibase/platform.analytics') {
  21. git url: 'https://code.bizgaze.com/unibase/analytics.git'
  22. }
  23. dir('unibase/platform.apps') {
  24. git url: 'https://code.bizgaze.com/unibase/apps.git'
  25. }
  26. dir('unibase/platform.automation') {
  27. git url: 'https://code.bizgaze.com/unibase/platform.automation.git'
  28. }
  29. dir('unibase/platform.common') {
  30. git url: 'https://code.bizgaze.com/unibase/platform.common.git'
  31. }
  32. dir('unibase/core') {
  33. git url: 'https://code.bizgaze.com/unibase/core.git'
  34. }
  35. dir('unibase/platform.datasources') {
  36. git url: 'https://code.bizgaze.com/unibase/platform.datasources.git'
  37. }
  38. dir('unibase/platform.gps') {
  39. git url: 'https://code.bizgaze.com/unibase/platform.gps.git'
  40. }
  41. dir('unibase/helpers') {
  42. git url: 'https://code.bizgaze.com/unibase/helpers.git'
  43. }
  44. dir('unibase/platform.integrations') {
  45. git url: 'https://code.bizgaze.com/unibase/platform.integrations.git'
  46. }
  47. dir('unibase/mongdbprovider') {
  48. git url: 'https://code.bizgaze.com/unibase/mongdbprovider.git'
  49. }
  50. dir('unibase/mssqldbprovider') {
  51. git url: 'https://code.bizgaze.com/unibase/mssqldbprovider.git'
  52. }
  53. dir('unibase/pgsqldbprovider') {
  54. git url: 'https://code.bizgaze.com/unibase/pgsqldbprovider.git'
  55. }
  56. dir('unibase/platform') {
  57. git url: 'https://code.bizgaze.com/unibase/platform.git'
  58. }
  59. dir('unibase/platform.server') {
  60. git url: 'https://code.bizgaze.com/unibase/platform.server.git'
  61. }
  62. dir('unibase/platform.templates') {
  63. git url: 'https://code.bizgaze.com/unibase/platform.templates.git'
  64. }
  65. dir('unibase/platform.themes') {
  66. git url: 'https://code.bizgaze.com/unibase/platform.themes.git'
  67. }
  68. dir('unibase/unibase.reference') {
  69. git url: 'https://code.bizgaze.com/unibase/unibase.reference.git'
  70. }
  71. dir('unibase/utilities') {
  72. git url: 'https://code.bizgaze.com/unibase/utilities.git'
  73. }
  74. dir('interface.web') {
  75. git url: 'https://code.bizgaze.com/interface.web.git'
  76. }
  77. dir('bizgaze') {
  78. git url: 'https://code.bizgaze.com/bizgaze/solution.git'
  79. }
  80. dir('bizgaze/bizgaze.reference') {
  81. git url: 'https://code.bizgaze.com/bizgaze/bizgaze.reference.git'
  82. }
  83. dir('bizgaze/communications') {
  84. git url: 'https://code.bizgaze.com/bizgaze/communications.git'
  85. }
  86. dir('bizgaze/crm') {
  87. git url: 'https://code.bizgaze.com/bizgaze/crm.git'
  88. }
  89. dir('bizgaze/crm.companies') {
  90. git url: 'https://code.bizgaze.com/bizgaze/crm.companies.git'
  91. }
  92. dir('bizgaze/crm.contacts') {
  93. git url: 'https://code.bizgaze.com/bizgaze/crm.contacts.git'
  94. }
  95. dir('bizgaze/crm.routes') {
  96. git url: 'https://code.bizgaze.com/bizgaze/crm.routes.git'
  97. }
  98. dir('bizgaze/integration.gst') {
  99. git url: 'https://code.bizgaze.com/bizgaze/integration.gst.git'
  100. }
  101. dir('bizgaze/integration.tally') {
  102. git url: 'https://code.bizgaze.com/bizgaze/Integration.Tally.git'
  103. }
  104. dir('bizgaze/paybacks') {
  105. git url: 'https://code.bizgaze.com/bizgaze/paybacks.git'
  106. }
  107. dir('bizgaze/pm') {
  108. git url: 'https://code.bizgaze.com/bizgaze/pm.git'
  109. }
  110. dir('bizgaze/support') {
  111. git url: 'https://code.bizgaze.com/bizgaze/support.git'
  112. }
  113. dir('bizgaze/tm') {
  114. git url: 'https://code.bizgaze.com/bizgaze/tm.git'
  115. }
  116. dir('bizgaze/transact') {
  117. git url: 'https://code.bizgaze.com/bizgaze/transact.git'
  118. }
  119. dir('bizgaze/transact.accounting') {
  120. git url: 'https://code.bizgaze.com/bizgaze/transact.accounting.git'
  121. }
  122. dir('bizgaze/transact.automation') {
  123. git url: 'https://code.bizgaze.com/bizgaze/transact.automation.git'
  124. }
  125. dir('bizgaze/transact.coupons') {
  126. git url: 'https://code.bizgaze.com/bizgaze/transact.coupons.git'
  127. }
  128. dir('bizgaze/transact.estimates') {
  129. git url: 'https://code.bizgaze.com/bizgaze/transact.estimates.git'
  130. }
  131. dir('bizgaze/transact.expenses') {
  132. git url: 'https://code.bizgaze.com/bizgaze/transact.expenses.git'
  133. }
  134. dir('bizgaze/transact.inventory') {
  135. git url: 'https://code.bizgaze.com/bizgaze/transact.inventory.git'
  136. }
  137. dir('bizgaze/transact.invoices') {
  138. git url: 'https://code.bizgaze.com/bizgaze/transact.invoices.git'
  139. }
  140. dir('bizgaze/transact.offers') {
  141. git url: 'https://code.bizgaze.com/bizgaze/transact.offers.git'
  142. }
  143. dir('bizgaze/transact.orders') {
  144. git url: 'https://code.bizgaze.com/bizgaze/transact.orders.git'
  145. }
  146. dir('bizgaze/transact.payments') {
  147. git url: 'https://code.bizgaze.com/bizgaze/transact.payments.git'
  148. }
  149. dir('bizgaze/transact.pricelists') {
  150. git url: 'https://code.bizgaze.com/bizgaze/transact.pricelists.git'
  151. }
  152. dir('bizgaze/transact.providers') {
  153. git url: 'https://code.bizgaze.com/bizgaze/transact.providers.git'
  154. }
  155. dir('bizgaze/transact.taxes') {
  156. git url: 'https://code.bizgaze.com/bizgaze/transact.taxes.git'
  157. }
  158. dir('bizgaze/transact.wallets') {
  159. git url: 'https://code.bizgaze.com/bizgaze/transact.wallets.git'
  160. }
  161. dir('uniconnect') {
  162. git url: 'https://code.bizgaze.com/uniconnect.git'
  163. }
  164. dir('unidrive') {
  165. git url: 'https://code.bizgaze.com/unidrive.git'
  166. }
  167. dir('sprl') {
  168. git url: 'https://code.bizgaze.com/sprl.git'
  169. }
  170. sh 'dotnet restore ${WORKSPACE}/bizgaze/Bizgaze.Web.Server.publish.sln'
  171. }
  172. }
  173. stage('Clean') {
  174. steps {
  175. sh 'dotnet clean ${WORKSPACE}/bizgaze/Bizgaze.Web.Server.publish.sln --configuration Release'
  176. }
  177. }
  178. stage('Build') {
  179. steps {
  180. sh 'dotnet build ${WORKSPACE}/bizgaze/Bizgaze.Web.Server.publish.sln --configuration Release --no-restore'
  181. }
  182. }/*
  183. stage('Test') {
  184. steps {
  185. sh 'dotnet test ${WORKSPACE}/bizgaze/Bizgaze.Web.Server.publish.sln --no-restore'
  186. }
  187. }*/
  188. stage('Publish') {
  189. steps {
  190. sh 'dotnet publish ${WORKSPACE}/bizgaze/Bizgaze.Web.Server.publish.sln -o out --configuration Release --no-restore'
  191. }
  192. }
  193. stage ('Deploy') {
  194. steps {
  195. sh 'sudo ~/scripts/qa_deploy ${WORKSPACE}/out'
  196. }
  197. }
  198. }
  199. post{
  200. success{
  201. emailext body: "${currentBuild.currentResult}: Job ${env.JOB_NAME} build ${env.BUILD_NUMBER}\n More info at: ${env.BUILD_URL}",
  202. recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']],
  203. subject: "Jenkins Build ${currentBuild.currentResult}: Job ${env.JOB_NAME}"
  204. }
  205. always {
  206. deleteDir()
  207. }
  208. cleanup {
  209. cleanWs()
  210. }
  211. }
  212. }