我的Jenkins版本是2.7.8,我有像Email_AAA Email_BBB Email_CCC等工作\ni创建了一个视图并使用以下正则表达式\xef\xbc\x9a\n^Email设置过滤器。*$
\n\n但没有返回任何内容\n我在日志中没有找到与此相关的任何内容。\n有任何可能的线索吗?
\n\n谢谢。\n-Neo
\n我试图使用curl为我的pod添加一个poststart钩子,比如说向shell中的slack通道发送消息,命令如下所示
curl -d "text=Hi I am a bot that can post messages to any public channel." -d "channel=C1234567" -H "Authorization: Bearer xoxb-xxxxxxxxxxxxxxxx" -X POST https://slack.com/api/chat.postMessage
Run Code Online (Sandbox Code Playgroud)
在我的 pod 定义中,我尝试了这样的操作
apiVersion: v1
kind: Pod
metadata:
name: dapi-test-pod
spec:
containers:
- name: test-container
image: curlimages/curl
env:
- name: TOKEN
valueFrom:
configMapKeyRef:
name: my-config
key: token
command: ["sleep"]
args: ["3000"]
lifecycle:
postStart:
exec:
command:
- "sh"
- "-c"
- |
curl -d "text=Hi going to start." -d "channel=C1234567" -H "Authorization: Bearer $(TOKEN)" -X POST …Run Code Online (Sandbox Code Playgroud)