Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: UI方式下的「所有参数满足条件时执行」和「所有参数满足条件时不执行」转为Code 优化 #10930

Closed
fayewong-v5 opened this issue Sep 9, 2024 · 0 comments
Assignees
Labels
done Production environment in tencent has been deploy kind/enhancement 功能改进特性 service/process 流水线 todo todo

Comments

@fayewong-v5
Copy link
Contributor

UI方式下的「所有参数满足条件时执行」和「所有参数满足条件时不执行」转为Code 时,不要直接转为「表达式」,会让用户来回切换时有疑惑

语法如下:

- name: say hi
  if:
    mode: RUN_WHEN_ALL_PARAMS_MATCH
    params:
      a: hello
      b: 1
  jobs:
    check:
      steps:
      - run: |
          echo "a is ${{ variables.a }}"
          echo "b is ${{ variables.b }}"
- name: say hi2
  if:
    mode: NOT_RUN_WHEN_ALL_PARAMS_MATCH
    params:
      a: hello
      b: 1
  jobs:
    check:
      steps:
      - run: |
          echo "a is ${{ variables.a }}"
          echo "b is ${{ variables.b }}"

@fayewong-v5 fayewong-v5 added the kind/enhancement 功能改进特性 label Sep 9, 2024
@fayewong-v5 fayewong-v5 added the service/process 流水线 label Sep 9, 2024
@bkci-bot bkci-bot added the todo todo label Sep 19, 2024
@bkci-bot bkci-bot added for test Test environment in tencent has been deploy todo todo and removed todo todo labels Sep 19, 2024
@yongyiduan yongyiduan added the tested 测试环境通过/test patest passed for test stage label Oct 15, 2024
bkci-bot added a commit that referenced this issue Oct 15, 2024
feat: UI方式下的「所有参数满足条件时执行」和「所有参数满足条件时不执行」转为Code 优化 #10930
@bkci-bot bkci-bot added for gray UAT environment in tencent has been deploy todo todo and removed todo todo for test Test environment in tencent has been deploy tested 测试环境通过/test patest passed for test stage labels Oct 15, 2024
@bkci-bot bkci-bot added done Production environment in tencent has been deploy and removed for gray UAT environment in tencent has been deploy labels Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Production environment in tencent has been deploy kind/enhancement 功能改进特性 service/process 流水线 todo todo
Projects
None yet
Development

No branches or pull requests

3 participants