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

Need help #1

Open
mahendra03 opened this issue Mar 21, 2022 · 0 comments
Open

Need help #1

mahendra03 opened this issue Mar 21, 2022 · 0 comments

Comments

@mahendra03
Copy link

Hi Team,

I need one help , I have jenkins installed in GCP server and also active choice parameter plugin installed to it
when I run below command in groovy section and when i suppose to build i should see list of images in that project but i am not getting list of gcp instance images when i go for build.

although service account permission has been already map

import groovy.json.JsonSlurper;
def cmd = "gcloud compute images list --project=mahendra --filter="creationTimestamp < -P6M""
def gi_images_json = cmd.execute()
def data = new JsonSlurper().parseText(gi_images_json.text)
def gi_images = [];
return gi_images.sort().reverse

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

1 participant