遵循以下指导:https://cloud.google.com/cloud-build/docs/configuring-builds/configure-build-step-order
我们已将构建拆分成多层docker映像,其中的层是
我们已经用docker id标记了cloudbuild.yaml中的步骤,并正在使用waitfor
进行尝试,以便debug
和release
版本可以并行运行 。
但是,当我们执行此操作时,构建日志会混杂在一起-用于发布和调试的构建日志混杂在一起,使其更难阅读。例如
Step #2 - "build-debug": �[0m�[91m Downloaded colored v1.7.0
Step #5 - "build-release": �[0m�[91merror: couldn't read /tmp/mobilenode/src/attest/src/ias/../data/AttestationReportSigningCACert.pem: No such file or directory (os error 2)
Step #5 - "build-release": --> /tmp/mobilenode/src/attest/src/ias/verify.rs:35:7
Step #5 - "build-release": |
Step #5 - "build-release": 35 | &[include_str!("../data/AttestationReportSigningCACert.pem")];
Step #5 - "build-release": | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Step #5 - "build-release":
Step #2 - "build-debug": �[0m�[91m Downloaded toml v0.4.10
[0m�[91m Downloaded safemem v0.3.0
Step #2 - "build-debug": �[0m�[91m Downloaded crunchy v0.1.6
Step #2 - "build-debug": �[0m�[91m Downloaded grpcio-sys v0.4.4
Step #5 - "build-release": �[0m�[91merror: aborting due to previous error
Step #5 - "build-release":
Step #5 - "build-release": �[0m�[91merror: Could not compile `attest`.
Step #5 - "build-release": warning: build failed, waiting for other jobs to finish...
Step #5 - "build-release": �[0m�[91merror: build failed
Step #5 - "build-release": �[0m�[91mmake: *** [src/enclave/target/release/libenclave.so] Error 101
Step #5 - "build-release": �[0mMakefile:90: recipe for target 'src/enclave/target/release/libenclave.so' failed
Step #2 - "build-debug": �[0m�[91m Downloaded term v0.5.1
Step #2 - "build-debug": �[0m�[91m Downloaded tiny_http v0.6.2
Step #2 - "build-debug": �[0m�[91m Downloaded regex v0.1.80
是否有一种配置cloudbuild的方法,以便每个构建步骤都有单独的日志文件?最好的答案是对并行步骤使用不同的cloudbuild.yaml并跳过所有这些wait_for
的东西吗?