mirror of
https://github.com/corda/corda.git
synced 2024-12-25 07:31:10 +00:00
1660e7674b
* Reintroduce `build.gradle` from 4.4 * Add Jenkins publication logic Co-authored-by: Waldemar Zurowski <waldemar.zurowski@r3.com> Co-authored-by: Ross Nicoll <ross.nicoll@r3.com>
36 lines
1.0 KiB
Groovy
36 lines
1.0 KiB
Groovy
@Library('corda-shared-build-pipeline-steps')
|
|
|
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
|
|
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
|
|
|
pipeline {
|
|
agent { label 'standard' }
|
|
options {
|
|
ansiColor('xterm')
|
|
timestamps()
|
|
timeout(time: 3, unit: 'HOURS')
|
|
}
|
|
|
|
environment {
|
|
ARTIFACTORY_CREDENTIALS = credentials('artifactory-credentials')
|
|
CORDA_ARTIFACTORY_USERNAME = "${env.ARTIFACTORY_CREDENTIALS_USR}"
|
|
CORDA_ARTIFACTORY_PASSWORD = "${env.ARTIFACTORY_CREDENTIALS_PSW}"
|
|
}
|
|
|
|
stages {
|
|
stage('Publish Archived API Docs to Artifactory') {
|
|
when { tag pattern: /^release-os-V(\d+\.\d+)(\.\d+){0,1}(-GA){0,1}(-\d{4}-\d\d-\d\d-\d{4}){0,1}$/, comparator: 'REGEXP' }
|
|
steps {
|
|
sh "./gradlew :clean :docs:artifactoryPublish -DpublishApiDocs"
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
cleanup {
|
|
deleteDir() /* clean up our workspace */
|
|
}
|
|
}
|
|
}
|