Azure Pipeline Env变量具有缓存/过时的值

发布于 2025-02-13 18:07:34 字数 751 浏览 2 评论 0原文

我编写了一个管道任务,其中的变量像这样,

    jobs:
      - job: buildandpush
        pool:
          vmImage: 'ubuntu-latest'
        steps:
          - script: |
              echo sanity check
              echo $NOTING_SERVICE_ORIGIN
              echo $NOTING_SERVICE_ORIGIN_2
            env:
              NOTING_SERVICE_ORIGIN: dummy-string-111
              NOTING_SERVICE_ORIGIN_2: dummy-string-222

我看到的印刷是:

sanity check
https://some-url-we-used-in-the-past/
dummy-string-222

我从未通过Azure DevOps UI添加任何变量。值https:// some-url-we-we-in-in-the-past/不再在代码库中的任何地方。在Azure Pipelines文档中,我找不到任何有趣的东西。 Azure管道缓存noting_service_origin某处吗?

I wrote a pipeline task with a variable passed like this

    jobs:
      - job: buildandpush
        pool:
          vmImage: 'ubuntu-latest'
        steps:
          - script: |
              echo sanity check
              echo $NOTING_SERVICE_ORIGIN
              echo $NOTING_SERVICE_ORIGIN_2
            env:
              NOTING_SERVICE_ORIGIN: dummy-string-111
              NOTING_SERVICE_ORIGIN_2: dummy-string-222

What I see printed is:

sanity check
https://some-url-we-used-in-the-past/
dummy-string-222

I did not ever add any variables through Azure DevOps UI. The value https://some-url-we-used-in-the-past/ is no longer anywhere in the codebase. I could not find anything interesting in Azure Pipelines docs.
Is Azure Pipelines caching NOTING_SERVICE_ORIGIN somewhere?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谜泪 2025-02-20 18:07:34

最终找到了其他已经定义了管道变量的人。令人惊讶的是,它优先于当场明确通过的同一变量。

Ended up finding someone else already defined the variable for the pipeline. Surprising was that it took precedence over the same variable passed explicitly on the spot.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文