我尝试使用此命令直接在管道中使用 gcloud 创建一个 VM,
管道{
agent any
stages{
stage('Create a VM'){
gcloud compute instances create centos-7 --image-family=centos-7 --image-project=centos-cloud --zone=europe-west2-c
}
}
}
我尝试传递 auth-key 但没有找到正确的语法来做到这一点,有人可以帮忙吗?