Files
solution/Jenkinsfile
T

209 lines
8.2 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:46 -07:00
git url: 'git@code.bizgaze.com:unibase/tenants.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.analytics') {
2021-08-03 16:51:29 -07:00
git url: 'git@code.bizgaze.com:unibase/analytics.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.apps') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:unibase/apps.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.automation') {
2021-08-03 17:41:38 -07:00
git url: 'git@code.bizgaze.com:unibase/automation.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.common') {
2021-08-03 17:41:38 -07:00
git url: 'git@code.bizgaze.com:unibase/common.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/core') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:unibase/core.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.datasources') {
2021-08-03 17:41:38 -07:00
git url: 'git@code.bizgaze.com:unibase/datasources.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.gps') {
2021-08-03 17:41:38 -07:00
git url: 'git@code.bizgaze.com:unibase/gps.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/helpers') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:unibase/helpers.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.integrations') {
2021-08-03 17:41:38 -07:00
git url: 'git@code.bizgaze.com:unibase/integrations.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/mongdbprovider') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:unibase/mongdbprovider.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/mssqldbprovider') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:unibase/mssqldbprovider.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/pgsqldbprovider') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:unibase/pgsqldbprovider.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:unibase/platform.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.server') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:unibase/platform.server.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.templates') {
2021-08-03 17:41:38 -07:00
git url: 'git@code.bizgaze.com:unibase/templates.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/platform.themes') {
2021-08-03 17:41:38 -07:00
git url: 'git@code.bizgaze.com:unibase/themes.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/unibase.reference') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:unibase/unibase.reference.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unibase/utilities') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:unibase/utilities.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('interface.web') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:interface.web.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/solution.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/bizgaze.reference') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/bizgaze.reference.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/communications') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/communications.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/crm') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/crm.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/crm.companies') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/crm.companies.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/crm.contacts') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/crm.contacts.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/crm.routes') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/crm.routes.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/integration.gst') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/integration.gst.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/integration.tally') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/Integration.Tally.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/paybacks') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/paybacks.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/pm') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/pm.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/support') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/support.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/tm') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/tm.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.accounting') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.accounting.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.automation') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.automation.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.coupons') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.coupons.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.estimates') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.estimates.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.expenses') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.expenses.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.inventory') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.inventory.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.invoices') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.invoices.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.offers') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.offers.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.orders') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.orders.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.payments') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.payments.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.pricelists') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.pricelists.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.providers') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.providers.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.taxes') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.taxes.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('bizgaze/transact.wallets') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:bizgaze/transact.wallets.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('uniconnect') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:unibase/uniconnect.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('unidrive') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:unidrive/unidrive.git', credentialsId: 'jenkins_ssh_key'
2021-08-03 11:53:14 -07:00
}
dir('sprl') {
2021-08-03 17:26:03 -07:00
git url: 'git@code.bizgaze.com:sprl/sprl.git', credentialsId: 'jenkins_ssh_key'
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 17:41:38 -07:00
}
2021-08-03 11:53:14 -07:00
always {
deleteDir()
}
cleanup {
cleanWs()
2021-08-03 17:41:38 -07:00
}
2021-08-03 11:53:14 -07:00
}
}