Skip to content

Commit

Permalink
feat(ci): add javadoc staging stage
Browse files Browse the repository at this point in the history
* Stage Javadoc snapshot versions through the Pipeline CI. The Javadoc staging stage is on the Daily CE Pipeline. It is triggered only daily, on SCM change.

Related to CAM-13784, closes camunda#1560
  • Loading branch information
koevskinikola authored Sep 16, 2021
1 parent 69e8372 commit fd95efc
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 9 deletions.
39 changes: 32 additions & 7 deletions .ci/daily/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,39 @@ pipeline {
])
}
}
stage('check-sql-scripts') {
steps {
cambpmConditionalRetry([
agentLabel: 'centos-stable',
runSteps: {
sh '.ci/scripts/check-sql-scripts.sh'
stage('Misc') {
parallel {
stage('check-sql-scripts') {
steps {
cambpmConditionalRetry([
agentLabel: 'centos-stable',
runSteps: {
sh '.ci/scripts/check-sql-scripts.sh'
}
])
}
])
}
stage('stage-javadocs') {
when {
branch cambpmDefaultBranch();
}
steps {
cambpmConditionalRetry([
agentLabel : 'centos-stable',
runSteps : {
sh 'mkdir -p ./webapps/target/webapp'
cambpmRunMaven('.',
'package javadoc:javadoc javadoc:aggregate -Pdistro,distro-wildfly,distro-webjar,javadocs -DskipTests=true -Dskip.frontend.build=true',
withNpm: true,
jdkVersion: 'jdk-11-latest')
},
postSuccess: {
def projectVersion = cambpmUtils.getMavenProjectVersion()
cambpmPublishJavadocs("\"target/site/apidocs/\"", projectVersion)
}
])
}
}
}
}
stage('Standalone QA tests') {
Expand Down
8 changes: 6 additions & 2 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,12 @@
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<failOnError>false</failOnError>
<doclint>none</doclint>
<quiet>true</quiet>
<additionalJOptions>
<additionalJOption>-Xdoclint:none</additionalJOption>
<additionalJOption>--ignore-source-errors</additionalJOption>
</additionalJOptions>
<doctitle>Camunda Platform Javadocs ${project.version}</doctitle>
<windowtitle>Camunda Platform Javadocs ${project.version}</windowtitle>
</configuration>
</plugin>
</plugins>
Expand Down
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,27 @@
</modules>
</profile>

<profile>
<id>javadocs</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<failOnError>false</failOnError>
<additionalJOptions>
<additionalJOption>-Xdoclint:none</additionalJOption>
<additionalJOption>--ignore-source-errors</additionalJOption>
</additionalJOptions>
<doctitle>Camunda Platform Javadocs ${project.version}</doctitle>
<windowtitle>Camunda Platform Javadocs ${project.version}</windowtitle>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>distro-serverless</id>
<modules>
Expand Down

0 comments on commit fd95efc

Please sign in to comment.