gitlab issues

somehow, even with gitlab 14.8, this issue still exists. to make things even bizarre, it always works from the main (develop), however, on and off would throw alert "no matching files" from any merge request pipeline. this is the setup: build: stage: build script: - mvn package - find . -type f -path '*/target/*.jar' # this shows the list of jars artifacts: paths: - ./*/target/*.jar' # this only works in main branch, breaks on and off from other pipelines
I have tripped over and spent a lot of time on this as well. But seems like the completion solution, is a combination of 1) use new timestamp for *.class 2) disable the useIncrementalCompilation at the moment, `useIncrementalCompilation` seems like only working from the pom.xml configuration, not through the command line. Also it would be good if there is a parameter from gitlab to configure whether to reload the artifacts, or keep the existing timestamps. ``` build: stage: build image: maven:3.6-jdk-11 script: - 'mvn test-compile' - *prepare-build-artifact except: - tags artifacts: paths: - target.zip reload: true ```

--

--

https://lwpro2.dev/

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store