123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
-
- pipeline {
- agent any
- environment {
- deployPath = "/var/www/vhosts/bizgaze.com/qa.Bizgaze.com"
- }
- stages {
- stage('Restore packages') {
- steps {
- dir('unibase/platform.tenants') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-platform.tenants.git'
- }
- dir('unibase/platform.analytics') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-platform.analytics.git'
- }
- dir('unibase/platform.apps') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-platform.apps.git'
- }
- dir('unibase/platform.automation') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-platform.automation.git'
- }
- dir('unibase/platform.common') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-platform.common.git'
- }
- dir('unibase/core') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-core.git'
- }
- dir('unibase/platform.datasources') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-platform.datasources.git'
- }
- dir('unibase/platform.gps') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-platform.gps.git'
- }
- dir('unibase/helpers') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-helpers.git'
- }
- dir('unibase/platform.integrations') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-platform.integrations.git'
- }
- dir('unibase/mongdbprovider') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-mongdbprovider.git'
- }
- dir('unibase/mssqldbprovider') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-mssqldbprovider.git'
- }
- dir('unibase/pgsqldbprovider') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-pgsqldbprovider.git'
- }
- dir('unibase/platform') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-platform.git'
- }
- dir('unibase/platform.server') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-platform.server.git'
- }
- dir('unibase/platform.templates') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-platform.templates.git'
- }
- dir('unibase/platform.themes') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-platform.themes.git'
- }
- dir('unibase/unibase.reference') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-unibase.reference.git'
- }
- dir('unibase/utilities') {
- git url: 'https://code.bizgaze.com/Matvey/unibase-utilities.git'
- }
- dir('interface.web') {
- git url: 'https://code.bizgaze.com/Matvey/interface.web.git'
- }
- dir('bizgaze') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-solution.git'
- }
- dir('bizgaze/bizgaze.reference') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-bizgaze.reference.git'
- }
- dir('bizgaze/communications') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-communications.git'
- }
- dir('bizgaze/crm') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-crm.git'
- }
- dir('bizgaze/crm.companies') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-crm.companies.git'
- }
- dir('bizgaze/crm.contacts') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-crm.contacts.git'
- }
- dir('bizgaze/crm.routes') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-crm.routes.git'
- }
- dir('bizgaze/integration.gst') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-integration.gst.git'
- }
- dir('bizgaze/integration.tally') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-Integration.Tally.git'
- }
- dir('bizgaze/paybacks') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-paybacks.git'
- }
- dir('bizgaze/pm') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-pm.git'
- }
- dir('bizgaze/support') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-support.git'
- }
- dir('bizgaze/tm') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-tm.git'
- }
- dir('bizgaze/transact') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.git'
- }
- dir('bizgaze/transact.accounting') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.accounting.git'
- }
- dir('bizgaze/transact.automation') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.automation.git'
- }
- dir('bizgaze/transact.coupons') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.coupons.git'
- }
- dir('bizgaze/transact.estimates') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.estimates.git'
- }
- dir('bizgaze/transact.expenses') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.expenses.git'
- }
- dir('bizgaze/transact.inventory') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.inventory.git'
- }
- dir('bizgaze/transact.invoices') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.invoices.git'
- }
- dir('bizgaze/transact.offers') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.offers.git'
- }
- dir('bizgaze/transact.orders') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.orders.git'
- }
- dir('bizgaze/transact.payments') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.payments.git'
- }
- dir('bizgaze/transact.pricelists') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.pricelists.git'
- }
- dir('bizgaze/transact.providers') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.providers.git'
- }
- dir('bizgaze/transact.taxes') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.taxes.git'
- }
- dir('bizgaze/transact.wallets') {
- git url: 'https://code.bizgaze.com/Matvey/bizgaze-transact.wallets.git'
- }
- dir('uniconnect') {
- git url: 'https://code.bizgaze.com/Matvey/uniconnect.git'
- }
- dir('unidrive') {
- git url: 'https://code.bizgaze.com/Matvey/unidrive.git'
- }
- dir('sprl') {
- git url: 'https://code.bizgaze.com/Matvey/sprl.git'
- }
-
- sh 'dotnet restore ${WORKSPACE}/bizgaze/Bizgaze.Web.Server.publish.sln'
- }
- }
-
- stage('Clean') {
- steps {
- sh 'dotnet clean ${WORKSPACE}/bizgaze/Bizgaze.Web.Server.publish.sln --configuration Release'
- }
- }
- stage('Build') {
- steps {
- sh 'dotnet build ${WORKSPACE}/bizgaze/Bizgaze.Web.Server.publish.sln --configuration Release --no-restore'
- }
- }/*
- stage('Test') {
- steps {
- sh 'dotnet test ${WORKSPACE}/bizgaze/Bizgaze.Web.Server.publish.sln --no-restore'
- }
- }*/
- stage('Publish') {
- steps {
- sh 'dotnet publish ${WORKSPACE}/bizgaze/Bizgaze.Web.Server.publish.sln -o out --configuration Release --no-restore'
- }
-
- }
- stage ('Deploy') {
- steps {
- sh 'sudo ~/scripts/qa_deploy ${WORKSPACE}/out'
- }
- }
- }
- post{
- success{
- emailext body: "${currentBuild.currentResult}: Job ${env.JOB_NAME} build ${env.BUILD_NUMBER}\n More info at: ${env.BUILD_URL}",
- recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']],
- subject: "Jenkins Build ${currentBuild.currentResult}: Job ${env.JOB_NAME}"
- }
- always {
- deleteDir()
- }
- cleanup {
- cleanWs()
- }
- }
- }
|