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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.