123 lines
4.9 KiB
Groovy
123 lines
4.9 KiB
Groovy
pipeline {
|
|
agent { label "${AGENT_LABEL}" }
|
|
stages {
|
|
stage('Initial setup') {
|
|
steps {
|
|
script {
|
|
meta = load("${WORKSPACE}/autobuild/Common_scripts/autobuilder.groovy").startnonbuild(this)
|
|
}
|
|
}
|
|
}
|
|
stage('Checkout dependencies') {
|
|
steps {
|
|
script {
|
|
configurationhelper = autobuilder.configurationhelper()
|
|
|
|
SOURCEURL = 'git@hydra:gis/atlas_ui.git'
|
|
SOURCEREVISION = "${SOURCE_REVISION}".trim()
|
|
SOURCEROOTDIR = 'atlas_ui'
|
|
SOURCEDIR = "${WORKSPACE}/atlas_ui"
|
|
configurationhelper.gitCheckoutAndRegister(meta, SOURCEROOTDIR, SOURCEURL, SOURCEREVISION, SOURCEDIR, SOURCEROOTDIR, 0, false)
|
|
}
|
|
}
|
|
}
|
|
stage('Import Print server to adjust version number') {
|
|
steps {
|
|
script {
|
|
importer = load("${autobuilder.commonscripts()}/import/importer.groovy")
|
|
|
|
psartifactfiles = "meta/**"
|
|
importer.artifactimport(meta, PRINT_SERVER_ARTIFACT_LOCATION, PRINT_SERVER_COMPILE_JOB, PRINT_SERVER_BUILD_SELECTOR, PRINT_SERVER_RELEASE_REPO, PRINT_SERVER_RELEASE_REVISION, 'ps_bin', true, psartifactfiles)
|
|
}
|
|
}
|
|
}
|
|
stage('Import Atlas services to adjust version number') {
|
|
steps {
|
|
script {
|
|
asartifactfiles = "meta/**"
|
|
importer.artifactimport(meta, ATLAS_SERVICES_ARTIFACT_LOCATION, ATLAS_SERVICES_COMPILE_JOB, ATLAS_SERVICES_BUILD_SELECTOR, ATLAS_SERVICES_RELEASE_REPO, ATLAS_SERVICES_RELEASE_REVISION, 'as_bin', true, asartifactfiles)
|
|
}
|
|
}
|
|
}
|
|
stage('Atlas static analysis') {
|
|
parallel {
|
|
stage('Measure Atlas code complexity') {
|
|
steps {
|
|
script {
|
|
ccm = build job: "${ATLAS_CCM_ANALYSIS_JOB}", propagate: false
|
|
|
|
if(ccm.result.equals("UNSTABLE") || ccm.result.equals("FAILURE"))
|
|
{
|
|
currentBuild.result = ccm.result
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
stage('Perform Atlas UI Resharper Analysis') {
|
|
steps {
|
|
script {
|
|
atlas = build job: "${ATLAS_RESHARPER_ANALYSIS_JOB}", propagate: false
|
|
if(!currentBuild.result.equals("FAILURE"))
|
|
{
|
|
if(atlas.result.equals("UNSTABLE") || atlas.result.equals("FAILURE"))
|
|
{
|
|
currentBuild.result = atlas.result
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage('Perform Atlas SDK Resharper Analysis') {
|
|
steps {
|
|
script {
|
|
sdk = build job: "${ATLAS_SDK_RESHARPER_ANALYSIS_JOB}", propagate: false
|
|
if(!currentBuild.result.equals("FAILURE"))
|
|
{
|
|
if(sdk.result.equals("UNSTABLE") || sdk.result.equals("FAILURE"))
|
|
{
|
|
currentBuild.result = sdk.result
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage('Perform Atlas Ink UI Resharper Analysis') {
|
|
steps {
|
|
script {
|
|
ink = build job: "${ATLAS_INK_UI_RESHARPER_ANALYSIS_JOB}", propagate: false
|
|
if(!currentBuild.result.equals("FAILURE"))
|
|
{
|
|
if(ink.result.equals("UNSTABLE") || ink.result.equals("FAILURE"))
|
|
{
|
|
currentBuild.result = ink.result
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
echo 'Post-build'
|
|
}
|
|
failure {
|
|
echo 'FAILURE build'
|
|
/*
|
|
step([$class: 'LogParserPublisher',
|
|
parsingRulesPath: 'GitRepository/autobuild/build/log parsing rules/vs.txt',
|
|
useProjectRule: true
|
|
])
|
|
*/
|
|
}
|
|
unstable {
|
|
echo 'Unstable build'
|
|
}
|
|
success {
|
|
echo 'Succeeded build'
|
|
}
|
|
}
|
|
}
|
|
|