Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-13738

pipelines refusing to build when triggered by tag

    XMLWordPrintable

Details

    Description

      I get the following complaint from the pipeline system:
      "The 'v*' section in your bitbucket-pipelines.yml file is missing a 'step'. Please add the missing 'step' to fix the error."

      My bitbucket-pipelines.yml looks as follows:

      #!yaml
      
      image: openjdk:7
      
      pipelines:
        default:
          - step:
              script:
                - ./gradlew build
        tags:
          v*:
            - step:
                script:
                  - ./gradlew install
      

      Which I believe looks a lot like the example in the documentation:

      #!yaml
      
      image: node:4.6.0
        
      pipelines:
        default:
          - step:
              script:
                - npm install
                - npm test
        tags:                         # add the 'tags' section
          release-*:                  # specify the tag
            - step:                   # define the build pipeline for the tag
                script:
                  - npm install
                  - npm test
                  - npm run release
        branches:
          staging:
            - step:
                script:
                  - echo "Clone all the things!"
      

      So I do not know how to fix this.

      Attachments

        Activity

          People

            Unassigned Unassigned
            75273099ee43 Sebastian Gozin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: