Skip to content

Commit

Permalink
allow to build microprofile-telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily-Jiang committed Aug 9, 2022
1 parent 936a71a commit f981ac5
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions buildScripts/release.groovy
Expand Up @@ -2,7 +2,8 @@ def modules = ['microprofile','microprofile-bom', 'microprofile-parent', 'microp
'microprofile-context-propagation','microprofile-fault-tolerance',
'microprofile-health','microprofile-jwt-auth','microprofile-metrics',
'microprofile-open-api','microprofile-opentracing','microprofile-rest-client',
'microprofile-reactive-streams-operators', 'microprofile-reactive-messaging', 'microprofile-lra', 'microprofile-graphql']
'microprofile-reactive-streams-operators', 'microprofile-reactive-messaging',
'microprofile-lra', 'microprofile-graphql', 'microprofile-telemetry']
def moduleString = modules.join('\n')
pipeline {
agent any
Expand Down Expand Up @@ -65,9 +66,12 @@ pipeline {
steps {
dir("${params.module}") {
sshagent(['projects-storage.eclipse.org-bot-ssh']) {
sh "ssh genie.microprofile@projects-storage.eclipse.org mkdir -p /home/data/httpd/download.eclipse.org/microprofile/staging/${params.module}-${params.releaseVersion}"
sh "scp -r spec/target/generated-docs/* genie.microprofile@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/microprofile/staging/${params.module}-${params.releaseVersion}"

script {
if (fileExists('spec')) {
sh "ssh genie.microprofile@projects-storage.eclipse.org mkdir -p /home/data/httpd/download.eclipse.org/microprofile/staging/${params.module}-${params.releaseVersion}"
sh "scp -r spec/target/generated-docs/* genie.microprofile@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/microprofile/staging/${params.module}-${params.releaseVersion}"
}
if (fileExists('api')) {
sh "scp api/target/*.jar genie.microprofile@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/microprofile/staging/${params.module}-${params.releaseVersion}/"

Expand All @@ -77,6 +81,19 @@ pipeline {
if (fileExists('tck')) {
sh "find tck -name \"*.jar\" | xargs -I{} scp {} genie.microprofile@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/microprofile/staging/${params.module}-${params.releaseVersion}/"
}
if (fileExists('tracing/spec')) {
sh "ssh genie.microprofile@projects-storage.eclipse.org mkdir -p /home/data/httpd/download.eclipse.org/microprofile/staging/${params.module}-${params.releaseVersion}"
sh "scp -r tracing/spec/target/generated-docs/* genie.microprofile@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/microprofile/staging/${params.module}-${params.releaseVersion}"
}
if (fileExists('tracing/api')) {
sh "scp tracing/api/target/*.jar genie.microprofile@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/microprofile/staging/${params.module}-${params.releaseVersion}/"

sh "ssh genie.microprofile@projects-storage.eclipse.org mkdir -p /home/data/httpd/download.eclipse.org/microprofile/staging/${params.module}-${params.releaseVersion}/apidocs"
sh "scp -r tracing/api/target/apidocs/* genie.microprofile@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/microprofile/staging/${params.module}-${params.releaseVersion}/apidocs"
}
if (fileExists('tracing/tck')) {
sh "find tck -name \"*.jar\" | xargs -I{} scp {} genie.microprofile@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/microprofile/staging/${params.module}-${params.releaseVersion}/"
}
}
}
}
Expand Down

0 comments on commit f981ac5

Please sign in to comment.