4

Why should I store artifacts? I'm doing it but i don't know if it still make sense.

  • My builds are fairly quick
  • I do git tag versioning
  • None of my builds depends on another. (all independent micro-services)

Any compelling reason to keep this "Artifactory code" in my pipelines?

1 Answer 1

3

One argument in support of storing artifacts is that it promotes consistency when deploying across different environments.

From Continuous Delivery by Humble and Farley:

Every time you compile the code, you run the risk of introducing some difference. The version of the compiler installed in the later stages may be different from the version that you used for your commit tests. You may pick up a different version of some third-party library that you didn’t intend. Even the configuration of the compiler may change the behavior of the application.

By only building artifacts once, we make sure that the production code is exactly the same as that which has gone through testing. In very small codebases with simple pipelines, it might not make too much of an impact, but it's still best practice to only build once.

1
  • 2
    Those are compelling reasons.| As a devops engineer i can't ensure that all builds will use the same dependencies every time. Also, despite the fact that my builds run in a docker container, it gives me the freedom to update containers at any time without risk of inconsistency. Thanks.
    – gabrielpe
    Aug 1, 2020 at 23:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.