Brak opisu
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 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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('tenants') {
  10. git url: 'https://code.bizgaze.com/unibase/tenants.git'
  11. }
  12. dir('analytics') {
  13. git url: 'https://code.bizgaze.com/unibase/analytics.git'
  14. }
  15. dir('apps') {
  16. git url: 'https://code.bizgaze.com/unibase/apps.git'
  17. }
  18. dir('automation') {
  19. git url: 'https://code.bizgaze.com/unibase/automation.git'
  20. }
  21. dir('common') {
  22. git url: 'https://code.bizgaze.com/unibase/common.git'
  23. }
  24. dir('core') {
  25. git url: 'https://code.bizgaze.com/unibase/core.git'
  26. }
  27. dir('datasources') {
  28. git url: 'https://code.bizgaze.com/unibase/datasources.git'
  29. }
  30. dir('desktop') {
  31. git url: 'https://code.bizgaze.com/unibase/desktop.git'
  32. }
  33. dir('dlls_unibase') {
  34. git url: 'https://code.bizgaze.com/unibase/dlls_unibase.git'
  35. }
  36. dir('gps') {
  37. git url: 'https://code.bizgaze.com/unibase/gps.git'
  38. }
  39. dir('Helpers') {
  40. git url: 'https://code.bizgaze.com/unibase/helpers.git'
  41. }
  42. dir('integrations') {
  43. git url: 'https://code.bizgaze.com/unibase/integrations.git'
  44. }
  45. dir('mongodbprovider') {
  46. git url: 'https://code.bizgaze.com/unibase/mongodbprovider.git'
  47. }
  48. dir('mssqldbprovider') {
  49. git url: 'https://code.bizgaze.com/unibase/mssqldbprovider.git'
  50. }
  51. dir('pgsqldbprovider') {
  52. git url: 'https://code.bizgaze.com/unibase/pgsqldbprovider.git'
  53. }
  54. dir('Platform') {
  55. git url: 'https://code.bizgaze.com/unibase/platform.git'
  56. }
  57. dir('platform.server') {
  58. git url: 'https://code.bizgaze.com/unibase/platform.server.git'
  59. }
  60. dir('templates') {
  61. git url: 'https://code.bizgaze.com/unibase/templates.git'
  62. }
  63. dir('themes') {
  64. git url: 'https://code.bizgaze.com/unibase/themes.git'
  65. }
  66. dir('unibase.reference') {
  67. git url: 'https://code.bizgaze.com/unibase/unibase.reference.git'
  68. }
  69. dir('uniconnect') {
  70. git url: 'https://code.bizgaze.com/unibase/uniconnect.git'
  71. }
  72. dir('utilities') {
  73. git url: 'https://code.bizgaze.com/unibase/utilities.git'
  74. }
  75. dir('web') {
  76. git url: 'https://code.bizgaze.com/unibase/web.git'
  77. }
  78. git url: 'https://code.bizgaze.com/unibase/Solution.git'
  79. sh 'dotnet restore ${WORKSPACE}/Unibase.Publish.sln'
  80. }
  81. }
  82. stage('Clean') {
  83. steps {
  84. sh 'dotnet clean ${WORKSPACE}/Unibase.Publish.sln --configuration Release'
  85. }
  86. }
  87. stage('Build') {
  88. steps {
  89. sh 'dotnet build ${WORKSPACE}/Unibase.Publish.sln --configuration Release --no-restore'
  90. }
  91. }/*
  92. stage('Test') {
  93. steps {
  94. sh 'dotnet test ${WORKSPACE}/Unibase.Publish.sln --no-restore'
  95. }
  96. }*/
  97. stage('Publish') {
  98. steps {
  99. sh 'dotnet publish ${WORKSPACE}/Unibase.Publish.sln -o out --configuration Release --no-restore'
  100. }
  101. }
  102. stage ('Deploy') {
  103. steps {
  104. sh 'sudo ~/scripts/qa_deploy ${WORKSPACE}/out'
  105. }
  106. }
  107. }
  108. post{
  109. success{
  110. emailext body: "${currentBuild.currentResult}: Job ${env.JOB_NAME} build ${env.BUILD_NUMBER}\n More info at: ${env.BUILD_URL}",
  111. recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']],
  112. subject: "Jenkins Build ${currentBuild.currentResult}: Job ${env.JOB_NAME}"
  113. }
  114. always {
  115. deleteDir()
  116. }
  117. cleanup {
  118. cleanWs()
  119. }
  120. }
  121. }