jenkins continuous delivery with shared workspace

前端 未结 2 1017
野性不改
野性不改 2021-01-02 18:16

Background:

We have one Jenkins job (Production) to build a deliverable every night. We have another job (ProductionPush) that pushes out

2条回答
  •  误落风尘
    2021-01-02 18:45

    Not sure archiving artifacts is really a good idea. A staging repository might be better as it enables cross-functional teams to share artifacts across different builds when required by tweaking the Maven settings.xml file.

    You really want a deployable (ear/war) as the thing that gets built, tested, then promoted to production once confidence is high with the build.

    Use a build number on your deployable (major.minor.buildnumber). This is the thing you promote to production, providing your tests can be relied upon. Don't use a hyphen to separate minor with build number as that forces Maven to perform a lexical comparison... a decimal point will force a numeric comparison which will give you far less headaches.

    Also, you didn't mention your target platform, but using the Maven APT/RPM plugin to push an APT/RPM to a APT/YUM repo that's available to a production box (AFTER successful testing!) would be a good fit, as per industry standards?

提交回复
热议问题