我的工作区如下所示:
|
|--> web-app
|
|--> src
|--> build
|
|--> fonts
|--> static
Run Code Online (Sandbox Code Playgroud)
我的cloudbuild.json看起来像这样:
{
"steps" : [
{
...
},
],
"artifacts": {
"objects": {
"location": "gs://my_bucket/",
"paths": [
"web-app/build/**"
]
}
}
}
Run Code Online (Sandbox Code Playgroud)
我希望 Google Cloud Build 将遍历build/文件夹的内容并将文件和目录复制到我的存储桶中。相反,它仅复制根植于文件build/目录,忽略了目录,并给出了有关使用报警-r的选项gsutil cp。
这是构建输出:
...
Artifacts will be uploaded to gs://my_bucket using gsutil cp
web-app/build/**: Uploading path....
Omitting directory "file://web-app/build/fonts". (Did you mean to do cp -r?)
Omitting directory "file://web-app/build/static". (Did …Run Code Online (Sandbox Code Playgroud) 我有一个安全工具,可以通过电子邮件向用户发送新密码。当阈值为VERBOSE时,生产电子邮件模块(我不拥有并且不想更改)将使用Log4Net记录整个html电子邮件正文。由于电子邮件包含明文形式的域用户密码,因此,我想在日志消息到达附加程序之前从日志消息中删除该密码。
有没有一种方法可以将对象临时插入Log4Net堆栈中,从而允许我搜索LoggingEvent消息并对其进行更改以掩盖我找到的所有密码?我想插入对象,调用电子邮件模块,然后删除对象。