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

how to replace or update a code-package #17

Open
Jianbin-IBM opened this issue Jul 30, 2023 · 3 comments
Open

how to replace or update a code-package #17

Jianbin-IBM opened this issue Jul 30, 2023 · 3 comments

Comments

@Jianbin-IBM
Copy link
Member

Can we have a command called “replace” or “update” that we can use to replace or update a code-package? In this case, the job will pick up the latest code-package.
Thanks

@jacek-midura
Copy link
Member

@Jianbin-IBM let me ask the team that maintains Code Packages API...

@kbb-42
Copy link
Member

kbb-42 commented Aug 7, 2023

@Jianbin-IBM

It is actually designed to create different revisions of a code package in your case. Each revision has a revision id (1, 2, 3, ...). The latest revision has the largest revision id.

You can use the following command to create a revision of a code package:

cpdctl code-package revision create --code package-id <YOUR code package ID> --project-id <YOUR project ID>

To get the description of this command, you can run cpdctl code-package revision create -h.

You can list all revisions including revision id by using the following command:

cpdctl code-package revision list --code-package-id <YOUR CODE PACKAGE ID> --project-id <YOUR PROJECT ID> --raw-output true --output json

@jacek-midura
Copy link
Member

@Jianbin-IBM does the explanation above answer your question? Can this issue be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants