Files
solution/Jenkinsfile
T

211 lines
6.8 KiB
Groovy
Raw Normal View History

2021-08-03 11:53:14 -07:00
pipeline {
agent any
environment {
deployPath = "/var/www/vhosts/bizgaze.com/qa.Bizgaze.com"
}
stages {
stage('Restore packages') {
steps {
dir('unibase/platform.tenants') {
2021-08-03 16:37:14 -07:00
git url: 'git@code.bizgaze.com:unibase/tenants.git', credentialsId: 'bizgaze_ssh_key'
2021-08-03 14:11:07 -07:00
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.analytics') {
2021-08-03 13:52:55 -07:00
git url: 'https://code.bizgaze.com/unibase/analytics.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.apps') {
2021-08-03 13:52:55 -07:00
git url: 'https://code.bizgaze.com/unibase/apps.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.automation') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/platform.automation.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.common') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/platform.common.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/core') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/core.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.datasources') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/platform.datasources.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.gps') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/platform.gps.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/helpers') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/helpers.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.integrations') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/platform.integrations.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/mongdbprovider') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/mongdbprovider.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/mssqldbprovider') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/mssqldbprovider.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/pgsqldbprovider') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/pgsqldbprovider.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/platform.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.server') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/platform.server.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.templates') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/platform.templates.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.themes') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/platform.themes.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/unibase.reference') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/unibase.reference.git'
2021-08-03 11:53:14 -07:00
}
dir('unibase/utilities') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unibase/utilities.git'
2021-08-03 11:53:14 -07:00
}
dir('interface.web') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/interface.web.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/solution.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/bizgaze.reference') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/bizgaze.reference.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/communications') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/communications.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/crm') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/crm.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/crm.companies') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/crm.companies.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/crm.contacts') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/crm.contacts.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/crm.routes') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/crm.routes.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/integration.gst') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/integration.gst.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/integration.tally') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/Integration.Tally.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/paybacks') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/paybacks.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/pm') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/pm.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/support') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/support.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/tm') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/tm.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.accounting') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.accounting.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.automation') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.automation.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.coupons') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.coupons.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.estimates') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.estimates.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.expenses') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.expenses.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.inventory') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.inventory.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.invoices') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.invoices.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.offers') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.offers.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.orders') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.orders.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.payments') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.payments.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.pricelists') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.pricelists.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.providers') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.providers.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.taxes') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.taxes.git'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.wallets') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/bizgaze/transact.wallets.git'
2021-08-03 11:53:14 -07:00
}
dir('uniconnect') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/uniconnect.git'
2021-08-03 11:53:14 -07:00
}
dir('unidrive') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/unidrive.git'
2021-08-03 11:53:14 -07:00
}
dir('sprl') {
2021-08-03 12:28:53 -07:00
git url: 'https://code.bizgaze.com/sprl.git'
2021-08-03 11:53:14 -07:00
}
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}"
2021-08-03 16:05:33 -07:00
}/*
2021-08-03 11:53:14 -07:00
always {
deleteDir()
}
cleanup {
cleanWs()
2021-08-03 16:05:33 -07:00
}*/
2021-08-03 11:53:14 -07:00
}
}