Hey,
i have a multi maven module project.
Each module generates artifacts during the build and testing process.
How to configure the bitbucket-pipeline.yml in a way that all files within all "target" directories are accessible as artifact after building?
I have tried it this way, but there are no artifacts displayed after build is finished.
#...
script:
- mvn --batch-mode clean package #...
artifacts:
- *.log
- '*/target/**'
- '*/target/*'
- target/**
- */target/**
- ./target/*
#...
Hey @Tim Herold,
This should do the trick (all files under target, including subdirectories):
artifacts:
- '**/target/**'
Or, if you're interested only in files with a particular extension and right under target directory, like .jar:
artifacts:
- '**/target/*.jar'
Hope this helps.
Cheers,
Daniil
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.