remove publish and test stages for testing

This commit is contained in:
seanbrereton 2023-09-28 08:36:12 +01:00
parent 655fc4a324
commit a1af44acdd

View File

@ -133,10 +133,10 @@ pipeline {
options { options {
skipDefaultCheckout true skipDefaultCheckout true
} }
post { // post {
always { // always {
archiveArtifacts artifacts: '**/*.log', fingerprint: false // archiveArtifacts artifacts: '**/*.log', fingerprint: false
junit testResults: '**/build/test-results/**/*.xml', keepLongStdio: true // junit testResults: '**/build/test-results/**/*.xml', keepLongStdio: true
/* /*
* Copy all JUnit results files into a single top level directory. * Copy all JUnit results files into a single top level directory.
* This is necessary to stop the allure plugin from hitting out * This is necessary to stop the allure plugin from hitting out
@ -147,19 +147,19 @@ pipeline {
* copied to avoid collisions between files where the same test * copied to avoid collisions between files where the same test
* classes have run on multiple agents. * classes have run on multiple agents.
*/ */
fileOperations([fileCopyOperation( // fileOperations([fileCopyOperation(
includes: '**/build/test-results/**/*.xml', // includes: '**/build/test-results/**/*.xml',
targetLocation: 'allure-input', // targetLocation: 'allure-input',
flattenFiles: true, // flattenFiles: true,
renameFiles: true, // renameFiles: true,
sourceCaptureExpression: '.*/([^/]+)$', // sourceCaptureExpression: '.*/([^/]+)$',
targetNameExpression: 'other-agent-$1')]) // targetNameExpression: 'other-agent-$1')])
stash name: 'allure-input', includes: 'allure-input/**', useDefaultExcludes: false // stash name: 'allure-input', includes: 'allure-input/**', useDefaultExcludes: false
} // }
cleanup { // cleanup {
deleteDir() /* clean up our workspace */ // deleteDir() /* clean up our workspace */
} // }
} // }
stages { stages {
stage('Unstash') { stage('Unstash') {
steps { steps {
@ -206,10 +206,10 @@ pipeline {
} }
} }
stage('Same agent') { stage('Same agent') {
post { // post {
always { // always {
archiveArtifacts artifacts: '**/*.log', fingerprint: false // archiveArtifacts artifacts: '**/*.log', fingerprint: false
junit testResults: '**/build/test-results/**/*.xml', keepLongStdio: true // junit testResults: '**/build/test-results/**/*.xml', keepLongStdio: true
/* /*
* Copy all JUnit results files into a single top level directory. * Copy all JUnit results files into a single top level directory.
* This is necessary to stop the allure plugin from hitting out * This is necessary to stop the allure plugin from hitting out
@ -220,15 +220,15 @@ pipeline {
* copied to avoid collisions between files where the same test * copied to avoid collisions between files where the same test
* classes have run on multiple agents. * classes have run on multiple agents.
*/ */
fileOperations([fileCopyOperation( // fileOperations([fileCopyOperation(
includes: '**/build/test-results/**/*.xml', // includes: '**/build/test-results/**/*.xml',
targetLocation: 'allure-input', // targetLocation: 'allure-input',
flattenFiles: true, // flattenFiles: true,
renameFiles: true, // renameFiles: true,
sourceCaptureExpression: '.*/([^/]+)$', // sourceCaptureExpression: '.*/([^/]+)$',
targetNameExpression: 'same-agent-$1')]) // targetNameExpression: 'same-agent-$1')])
} // }
} // }
stages { stages {
stage('Integration Test') { stage('Integration Test') {
steps { steps {
@ -254,35 +254,35 @@ pipeline {
} }
} }
// stage('Publish to Artifactory') { stage('Publish to Artifactory') {
// when { when {
// expression { isReleaseTag } expression { isReleaseTag }
// } }
// steps { steps {
// rtServer( rtServer(
// id: 'R3-Artifactory', id: 'R3-Artifactory',
// url: 'https://software.r3.com/artifactory', url: 'https://software.r3.com/artifactory',
// credentialsId: 'artifactory-credentials' credentialsId: 'artifactory-credentials'
// ) )
// rtGradleDeployer( rtGradleDeployer(
// id: 'deployer', id: 'deployer',
// serverId: 'R3-Artifactory', serverId: 'R3-Artifactory',
// repo: 'corda-releases' repo: 'corda-releases'
// ) )
// rtGradleRun( rtGradleRun(
// usesPlugin: true, usesPlugin: true,
// useWrapper: true, useWrapper: true,
// switches: '-s --info -DpublishApiDocs', switches: '-s --info -DpublishApiDocs',
// tasks: 'artifactoryPublish', tasks: 'artifactoryPublish',
// deployerId: 'deployer', deployerId: 'deployer',
// buildName: env.ARTIFACTORY_BUILD_NAME buildName: env.ARTIFACTORY_BUILD_NAME
// ) )
// rtPublishBuildInfo( rtPublishBuildInfo(
// serverId: 'R3-Artifactory', serverId: 'R3-Artifactory',
// buildName: env.ARTIFACTORY_BUILD_NAME buildName: env.ARTIFACTORY_BUILD_NAME
// ) )
// } }
// } }
// stage('Publish Release Candidate to Internal Repository') { // stage('Publish Release Candidate to Internal Repository') {
// when { // when {
@ -422,8 +422,8 @@ pipeline {
// } // }
// } // }
// } // }
cleanup { // cleanup {
deleteDir() /* clean up our workspace */ // deleteDir() /* clean up our workspace */
} // }
} }
} }