Skip to content

自定义 tips_title 的时候无法获取真正DRONE_BUILD_STATUS的小问题 #44

Description

@YahuiWong

我想要在 tips_title 里面 显示 构建状态的时候尝试使用 ${DRONE_JOB_STATUS} ${DRONE_PREV_BUILD_STATUS} ${DRONE_BUILD_STATUS} ,发布只有 DRONE_BUILD_STATUS 是有值的,而且展示出来的效果永远是 success(实际是failure)

下面是我的代码

-   name: DingTalk
    image: lddsb/drone-dingtalk-message
    settings:
        token: 
          from_secret: dingtalk_token
        secret:
          from_secret: dingtalk_secret
        type: markdown
        tips_title: "${DRONE_REPO} build ${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:8}  No.${DRONE_BUILD_NUMBER} ${DRONE_JOB_STATUS}-${DRONE_PREV_BUILD_STATUS}-${DRONE_BUILD_STATUS}"
    when:
        status: [ success, failure ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions