Non-accessible workflow job & gets no build number

ui
workflow
cci-20

#1

The following job publish_release does not show up in the builds list (after approving it) and is not clickable in the workflows view (but shows green afterwards). It also gets no build number as another build gets the next (+1) build number for this project.

This job is not working as intended. How can we then see the logs of the publish_release job?

version: 2
jobs:
   build_release:
      [...]
   publish_release:
      [...]

workflows:
  version: 2
  build-and-deploy:
    jobs:
      - build_release:
          filters: &release_filters
            branches:
              only:
                - master
      - publish_release:
          type: approval
          requires:
            - build_release
          filters: *release_filters

#2

It seems the answer is that it’s not possible to use type: approval on a “real” job (defined in jobs), only on “pseudo” hold-jobs. The reference points it out:

Note: The hold job name must not exist in the main configuration.

So, the config file validation should fail if type: approval is used on a jobs job.


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.