From f925db6f3546de510f7f208fcd3d36f87c076830 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Thu, 13 Jul 2023 19:50:41 +0200 Subject: [PATCH] build/deploy sources --- Jenkinsfile | 16 ++++++++-------- pom.xml | 28 +++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4e19d52..944e1ed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -65,16 +65,16 @@ pipeline { } } } //stage deploy - post { - failure { - script { - if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'release') { - sendFailureMessage() - } + } //stages + post { + failure { + script { + if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'release') { + sendFailureMessage() } } - } - } //stages + } + } } //pipeline Void sendFailureMessage() { diff --git a/pom.xml b/pom.xml index d89c2f7..5169b20 100644 --- a/pom.xml +++ b/pom.xml @@ -21,5 +21,31 @@ <module>api-lib-core</module> <module>ozg-cloud-spring-boot-starter</module> </modules> - + + <properties> + <source-plugin.version>3.3.0</source-plugin.version> + </properties> + + <profiles> + <profile> + <id>deploy</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>${source-plugin.version}</version> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar-no-fork</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> \ No newline at end of file -- GitLab