Skip to content

Conversation

@v1v
Copy link
Member

@v1v v1v commented Aug 22, 2019

Closed #805

Highlights

  • The responsibility to validate the build should not be addressed within the packer cache script.
  • This will help to fetch and cache all the maven dependencies and also the docker images independently of the maven build status.
  • -Dmaven.test.failure.ignore=true could be an option but I'd rather prefer to avoid failing the maven build instead.

@v1v v1v added type: bug automation Tests & automation that help build & maintain the project labels Aug 22, 2019
@v1v v1v self-assigned this Aug 22, 2019
@felixbarny
Copy link
Member

+1 for -Dmaven.test.failure.ignore=true

Copy link
Contributor

@mdelapenya mdelapenya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

image

@v1v
Copy link
Member Author

v1v commented Aug 22, 2019

I'd rather say -Dmaven.test.failure.ignore=true will be more prescriptive in the hypothetical case the master branch got a compilation error, when it should not happen, and therefore this script will fail. That's the main reason for using fail-never instead. What do you think @felixbarny ?

@felixbarny
Copy link
Member

I misunderstood the meaning of --never-fail. I thought it would behave as normal but always exit with exit code 0. But it seems like it continues when tests fail 👍

@v1v v1v changed the title packer cache script should fail never to help to cache dependencies ci: packer cache script should fail never to help to cache dependencies Aug 22, 2019
@v1v v1v merged commit e6d2a93 into elastic:master Aug 22, 2019
@v1v v1v deleted the feature/805 branch August 22, 2019 08:44
@SylvainJuge SylvainJuge added bug Bugs and removed type: bug labels Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation Tests & automation that help build & maintain the project bug Bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

packer_cache is failing

4 participants