Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1801064: Deprecate Pipelines in new-app/build #291

Merged

Conversation

adambkaplan
Copy link
Contributor

Add a warning to oc new-app and oc new-build if a Jenkins pipeline strategy build was created.

@openshift-ci-robot
Copy link

@adambkaplan: This pull request references Bugzilla bug 1801064, which is invalid:

  • expected the bug to target the "4.4.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1801064: Deprecate Pipelines in new-app/build

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 11, 2020
@adambkaplan
Copy link
Contributor Author

/bugzilla refresh

@openshift-ci-robot
Copy link

@adambkaplan: This pull request references Bugzilla bug 1801064, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

/bugzilla refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Feb 11, 2020
@adambkaplan
Copy link
Contributor Author

/assign @soltysh

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 11, 2020
@@ -457,6 +457,9 @@ func (o *AppOptions) RunNewApp() error {
installing = append(installing, t)
}
case *buildv1.BuildConfig:
if t.Spec.Strategy.Type == buildv1.JenkinsPipelineBuildStrategyType {
fmt.Fprintf(out, "%sNOTICE: the JenkinsPipeline strategy is deprecated; consider using Jenkinsfiles directly on Jenkins or OpenShift Pipelines.\n", indent)
Copy link
Member

Choose a reason for hiding this comment

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

Log to o.Action.ErrOut and make the message similar to https://github.com/openshift/oc/blob/master/pkg/cli/rollout/latest.go#L114

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@soltysh done in latest push.

@@ -228,6 +228,9 @@ func (o *BuildOptions) RunNewBuild() error {
for _, item := range result.List.Items {
switch t := item.(type) {
case *buildv1.BuildConfig:
if t.Spec.Strategy.Type == buildv1.JenkinsPipelineBuildStrategyType {
fmt.Fprintf(out, "%sNOTICE: the JenkinsPipeline strategy is deprecated; consider using Jenkinsfiles directly on Jenkins or OpenShift Pipelines.\n", indent)
Copy link
Member

Choose a reason for hiding this comment

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

Ditto.

Add a warning to `oc new-app` and `oc new-build` if a Jenkins pipeline
strategy build was created.
Copy link
Member

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 12, 2020
@soltysh
Copy link
Member

soltysh commented Feb 12, 2020

/retest

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adambkaplan, soltysh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 3639a7c into openshift:master Feb 12, 2020
@openshift-ci-robot
Copy link

@adambkaplan: All pull requests linked via external trackers have merged. Bugzilla bug 1801064 has been moved to the MODIFIED state.

In response to this:

Bug 1801064: Deprecate Pipelines in new-app/build

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants