You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@training.apache.org by cd...@apache.org on 2022/09/19 14:40:50 UTC
[incubator-training] branch develop updated: chore(website): Copied the way PLC4X stages it's files as the default way was failing.
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-training.git
The following commit(s) were added to refs/heads/develop by this push:
new 3a04eb4 chore(website): Copied the way PLC4X stages it's files as the default way was failing.
3a04eb4 is described below
commit 3a04eb4c1ee94227196f4c98d48fd32dd34312bc
Author: Christofer Dutz <ch...@rivian.com>
AuthorDate: Mon Sep 19 16:40:44 2022 +0200
chore(website): Copied the way PLC4X stages it's files as the default way was failing.
---
site/Jenkinsfile | 2 +-
site/pom.xml | 33 +++++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/site/Jenkinsfile b/site/Jenkinsfile
index 437c1b8..722c983 100644
--- a/site/Jenkinsfile
+++ b/site/Jenkinsfile
@@ -102,7 +102,7 @@ pipeline {
steps {
echo 'Staging Site'
// Build a directory containing the aggregated website.
- sh 'mvn -f site/pom.xml site:stage'
+ sh 'mvn -f site/pom.xml -Pdeploy-site scm-publish:publish-scm'
/* Enable this as soon as we have multiple modules
// Make sure the script is executable.
diff --git a/site/pom.xml b/site/pom.xml
index 169fec7..19dd298 100644
--- a/site/pom.xml
+++ b/site/pom.xml
@@ -663,6 +663,39 @@
</repositories>
<profiles>
+ <profile>
+ <id>deploy-site</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-publish-plugin</artifactId>
+ <configuration>
+ <!-- mono-module doesn't require site:stage -->
+ <content>${project.build.directory}/site</content>
+ <!-- branch where to deploy -->
+ <scmBranch>asf-site</scmBranch>
+ </configuration>
+ </plugin>
+ </plugins>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-publish-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.scm</groupId>
+ <artifactId>maven-scm-provider-gitexe</artifactId>
+ <version>1.13.0</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ </profile>
+
<profile>
<id>only-eclipse</id>
<activation>