Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could add a check to see if the pipeline is part of a CI or CD. I.e. we dont want to run the release if we are running CI builds on Pull Requests. You could do something like this https://github.com/fabric8io/fabric8-init-tenant/blob/master/Jenkinsfile#L9-L24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also what this would do is run your CI pipelines for pull requests, it will create a snapshot image and add a comment to the PR once it's available for testing. Like this fabric8-services/fabric8-tenant#125 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So they just want CI and they are not looking for CD, this pipeline should run on PR and also while the PR is merged to master. Hence I did not explicitly check if it is CI or CD.
@pradeepto and @cdrage could you please confirm this ?
I am not sure if we still add this at least for the snapshot.
@rawlingsj
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rupalibehera Yeah, we just want CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok sounds good LGTM