123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
-
- pipeline {
- agent any
- environment {
- deployPath = "/var/www/vhosts/bizgaze.com/qa.Bizgaze.com"
- }
- stages {
- stage('Restore packages') {
- steps {
- dir('tenants') {
- git url: 'https://code.bizgaze.com/unibase/tenants.git'
- }
- dir('analytics') {
- git url: 'https://code.bizgaze.com/unibase/analytics.git'
- }
- dir('apps') {
- git url: 'https://code.bizgaze.com/unibase/apps.git'
- }
- dir('automation') {
- git url: 'https://code.bizgaze.com/unibase/automation.git'
- }
- dir('common') {
- git url: 'https://code.bizgaze.com/unibase/common.git'
- }
- dir('core') {
- git url: 'https://code.bizgaze.com/unibase/core.git'
- }
- dir('datasources') {
- git url: 'https://code.bizgaze.com/unibase/datasources.git'
- }
- dir('desktop') {
- git url: 'https://code.bizgaze.com/unibase/desktop.git'
- }
- dir('dlls_unibase') {
- git url: 'https://code.bizgaze.com/unibase/dlls_unibase.git'
- }
- dir('gps') {
- git url: 'https://code.bizgaze.com/unibase/gps.git'
- }
- dir('Helpers') {
- git url: 'https://code.bizgaze.com/unibase/helpers.git'
- }
- dir('integrations') {
- git url: 'https://code.bizgaze.com/unibase/integrations.git'
- }
- dir('mongodbprovider') {
- git url: 'https://code.bizgaze.com/unibase/mongodbprovider.git'
- }
- dir('mssqldbprovider') {
- git url: 'https://code.bizgaze.com/unibase/mssqldbprovider.git'
- }
- dir('pgsqldbprovider') {
- git url: 'https://code.bizgaze.com/unibase/pgsqldbprovider.git'
- }
- dir('Platform') {
- git url: 'https://code.bizgaze.com/unibase/platform.git'
- }
- dir('platform.server') {
- git url: 'https://code.bizgaze.com/unibase/platform.server.git'
- }
- dir('templates') {
- git url: 'https://code.bizgaze.com/unibase/templates.git'
- }
- dir('themes') {
- git url: 'https://code.bizgaze.com/unibase/themes.git'
- }
- dir('unibase.reference') {
- git url: 'https://code.bizgaze.com/unibase/unibase.reference.git'
- }
- dir('uniconnect') {
- git url: 'https://code.bizgaze.com/unibase/uniconnect.git'
- }
- dir('utilities') {
- git url: 'https://code.bizgaze.com/unibase/utilities.git'
- }
- dir('web') {
- git url: 'https://code.bizgaze.com/unibase/web.git'
- }
- git url: 'https://code.bizgaze.com/unibase/Solution.git'
-
- sh 'dotnet restore ${WORKSPACE}/Unibase.Publish.sln'
- }
- }
- stage('Clean') {
- steps {
- sh 'dotnet clean ${WORKSPACE}/Unibase.Publish.sln --configuration Release'
- }
- }
- stage('Build') {
- steps {
- sh 'dotnet build ${WORKSPACE}/Unibase.Publish.sln --configuration Release --no-restore'
-
- }
- }/*
- stage('Test') {
- steps {
- sh 'dotnet test ${WORKSPACE}/Unibase.Publish.sln --no-restore'
-
- }
- }*/
- stage('Publish') {
- steps {
- sh 'dotnet publish ${WORKSPACE}/Unibase.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()
- }
- }
- }
|