Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .ci/packaging.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,12 @@ def runE2ETestForPackages(){

def release(){
withBeatsEnv(){
dir("${env.BEATS_FOLDER}") {
sh(label: "Release ${env.BEATS_FOLDER} ${env.PLATFORMS}", script: 'mage package')
withEnv([
"DEV=true"
]) {
dir("${env.BEATS_FOLDER}") {
sh(label: "Release ${env.BEATS_FOLDER} ${env.PLATFORMS}", script: 'mage package')
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not completely familiar with the CI here, would that run DEV=true mage package for all the beats, quick grep through the code I don't think it would have any impact.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

DEV doesn't affect mage package AFAIK. Does it affect something else?

You can produce "snapshot" artifacts from packaging with SNAPSHOT=true if that's what you're looking for.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ph are we ok if we use SNAPSHOT instead?

Copy link
Contributor

@michalpristas michalpristas Oct 13, 2020

Choose a reason for hiding this comment

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

DEV is used by agent so it skips verification of the artifacts, agent does verify both normal builds and snapshot artifacts. without this artifacts from PRs will fail on these verifications as they wont be signed and 8.0.0-SNAPSHOT artifact published is different
it is a new flag so it should not alter other behavior

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any other concern about @michalpristas's comment? We'd like to merge this to fix some of the errors we see at the e2e tests

}
publishPackages("${env.BEATS_FOLDER}")
}
Expand Down