I have a multi-module Maven project:
root SubmoduleA src pom.xml SubmoduleB src pom.xml pom.xml .gitlab-ci.yml
Is it possible to somehow initiate the CI pipeline only on SubmoduleA when someone checks code that only affects SubmoduleA? For example, someone is making changes to SubmoduleA. After they commit and click, I want to automatically run build-> test-> deploy only on SubmoduleA, since there were no changes to SubmoduleB.
Is there a way to specify triggers and tasks for specific submodules or subprojects within the repo?
, gitlab , .gitlab-ci.yml. gitlab-ci-runner.
Maven ( Java), , , . , , Maven. Maven , , , , Java , git .
.Net nuget, , , , , - , .
Gitlab : https://docs.gitlab.com/ee/ci/yaml/#onlychanges
:
stages: - modules - build moduleB: stage: modules script: - mvn $MAVEN_OPTS -pl projectB clean install --also-make $MAVEN_CLI_OPTS only: changes: - projectB/** master_job: stage: build dependencies: - projectB script: - > mvn $MAVEN_OPTS -pl projectA clean install $MAVEN_CLI_OPTS
Source: https://habr.com/ru/post/1655535/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1655530/steps-to-deploy-play-framework-application-to-production-environment&usg=ALkJrhgI2WTgC68JAT1GPoPweOoM6CbuYwAjax php post not authenticated - javascriptImport a component from a lazy loadable module to another lazy module - angularnative zlib inflate / deflate for swift3 on iOS - iosЕсть ли правильный способ объединить две коммиты, которые не в порядке? - gitCreate a VB6 dll using Visual Studio 2015? - vb6How to localize the application name when using Xcode 8 and Swift 3 - xcode8on face recognition - Swift - iosIs O (1) time complexity for this function? - algorithmHow to delay the execution of an Azure function after its failure? - azureAll Articles