我正在尝试使用Deployment Manager运行Cloud Build,但是在构建日志中看不到命令的输出。
imports:
- path: somefolder/**
resources:
- name: build-something
action: gcp-types/cloudbuild-v1:cloudbuild.projects.builds.create
metadata:
runtimePolicy:
- UPDATE_ALWAYS
#- UPDATE_ON_CHANGE
properties:
steps:
- name: 'ubuntu'
args: ['bash', '-c', 'echo', '====================================================']
- name: 'ubuntu'
args: ['bash', '-c', 'pwd']
- name: 'ubuntu'
args: ['bash', '-c', 'ls', '-laR']
timeout: 120s
答案 0 :(得分:1)
1-关于第一步,您需要将其定义如下:
import win32com.client
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
inbox = outlook.GetDefaultFolder(6).Folders.Item("TODO")
messages = inbox.Items
message = messages.GetLast()
body_content = message.subject
print(body_content)
2-关于最后一步,我相信该命令确实有效,但是- name: 'ubuntu'
args: ['bash', '-c', 'echo "===================================================="']
中确实没有文件或目录要列出。通过按照您的确切步骤创建一个/workspace
文件并运行cloudbuild.yaml
来运行此构建时,我看到列出的gcloud builds submit .
文件。