No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Jenkinsfile 8.2KB

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