114 lines
2.9 KiB
Groovy
114 lines
2.9 KiB
Groovy
pipeline {
|
|
agent none
|
|
stages {
|
|
stage('Telegram') {
|
|
agent { label 'net-core' }
|
|
options { skipDefaultCheckout() }
|
|
environment {
|
|
Telegram_Token = credentials('telegram_token')
|
|
Chat_Id = -381345297
|
|
}
|
|
steps {
|
|
sh 'curl -s -X GET "https://api.telegram.org/bot$Telegram_Token/sendMessage?chat_id=$Chat_Id&text=Test_Message"'
|
|
}
|
|
}
|
|
stage('Build') {
|
|
parallel {
|
|
stage('Unix') {
|
|
agent { label 'net-core' }
|
|
stages {
|
|
stage('Components') {
|
|
steps {
|
|
sh 'sh echo "$env"'
|
|
sh 'sh ./build/scripts/components.sh'
|
|
}
|
|
}
|
|
stage('Common') {
|
|
steps {
|
|
sh 'sh ./build/scripts/common.sh'
|
|
}
|
|
}
|
|
stage('Client') {
|
|
steps {
|
|
sh 'sh ./build/scripts/client.sh'
|
|
}
|
|
}
|
|
stage('People') {
|
|
steps {
|
|
sh 'sh ./build/scripts/people.sh'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage('Windows') {
|
|
agent { label 'master' }
|
|
stages {
|
|
stage('Components') {
|
|
steps {
|
|
bat 'sh build\\scripts\\components.sh'
|
|
}
|
|
}
|
|
stage('Common') {
|
|
steps {
|
|
bat 'sh build\\scripts\\common.sh'
|
|
}
|
|
}
|
|
stage('Client') {
|
|
steps {
|
|
bat 'sh build\\scripts\\client.sh'
|
|
}
|
|
}
|
|
stage('People') {
|
|
steps {
|
|
bat 'sh build\\scripts\\people.sh'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage('Test') {
|
|
parallel {
|
|
stage('Unix') {
|
|
agent { label 'net-core' }
|
|
steps {
|
|
sh "sh ./build/scripts/components.sh && cd ${env.WORKSPACE}/web/ASC.Web.Components && yarn test:coverage --ci --reporters=default --reporters=jest-junit || true"
|
|
}
|
|
post {
|
|
success {
|
|
junit 'web/ASC.Web.Components/junit.xml'
|
|
publishHTML target: [
|
|
allowMissing : false,
|
|
alwaysLinkToLastBuild: false,
|
|
keepAll : true,
|
|
reportDir : 'web/ASC.Web.Components/coverage/lcov-report',
|
|
reportFiles : 'index.html',
|
|
reportName : 'Unix Test Report'
|
|
]
|
|
step([$class: 'CoberturaPublisher', coberturaReportFile: 'web/ASC.Web.Components/coverage/cobertura-coverage.xml'])
|
|
}
|
|
}
|
|
}
|
|
stage('Windows') {
|
|
agent { label 'master' }
|
|
steps {
|
|
bat "sh build\\scripts\\components.sh && cd ${env.WORKSPACE}\\web\\ASC.Web.Components && yarn test:coverage --ci --reporters=default --reporters=jest-junit || true"
|
|
}
|
|
post {
|
|
success {
|
|
junit 'web\\ASC.Web.Components\\junit.xml'
|
|
publishHTML target: [
|
|
allowMissing : false,
|
|
alwaysLinkToLastBuild: false,
|
|
keepAll : true,
|
|
reportDir : 'web\\ASC.Web.Components\\coverage\\lcov-report',
|
|
reportFiles : 'index.html',
|
|
reportName : 'Windows Test Report'
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |