Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,866
Community Members
 
Community Events
168
Community Groups

No commands or pipes defined for the step at [pipelines > branches > feature/ION-565-dotnet-autodepl

Edited

image: atlassian/default-image:1.363

definitions:
branches:
feature/ION-565-dotnet-autodeploy:
- step: &dotnet-framework
name: Build dotnet
runs-on:
- self.hosted
- windows
clone:
enabled: true
script:
- msbuild modules/test.sln
- Compress-Archive * app.zip
artifacts:
- app.zip

- step: &upload-to-s3
name: Upload to S3
services:
- docker
script:
- pipe: atlassian/aws-code-deploy:0.2.10
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
COMMAND: 'upload'
APPLICATION_NAME: $APPLICATION_NAME
ZIP_FILE: 'app.zip'

pipelines:
branches:
feature/ION-565-dotnet-autodeploy:
- step:
<<: *dotnet-framework
name: Build dotnet for Sandbox
deployment: sandbox
trigger: automatic
- step:
<<: *upload-to-s3
name: Upload to S3 for Sandbox
trigger: automatic

 

can anyone help me with my pipeline. I am just learning butbucket pipeline and I am using windows runner. please share your knowledge

1 answer

1 accepted

0 votes
Answer accepted

@Abu Bakir Uralov hi. Look at the example below of how to use anchors:

image:
  name: atlassian/default-image:3


test: &test
  parallel:
    - step:
        name: Build and Test
        image: python:3.7
        script:
          - 
        services:
        - docker
    - step:
        name: Lint the Dockerfile
        image: hadolint/hadolint:latest-debian
        script:
          - hadolint Dockerfile

push: &push
  step:
    name: Push and Tag
    image: python:3.7
    script:
      - pipe: atlassian/bitbucket-pipe-release:5.0.1
    services:
      - docker


pipelines:
  default:
  - <<: *test
  branches:
    master:
    - <<: *test
    - <<: *push

 

Or you can check this page: yaml anchors.

 

Regards, Igor

Thank you Igor. I was working on runner for windows. Do you have any idea about bitbucket pipeline runner?

@Igor Stoyanov  in my pipeline I should deploy dotnet framework with msbuild command

@Abu Bakir Uralov  hi. You can check this articles for windows runners:
blog-windows-runners , set-up-runners-for-windows .

Regards, Igor.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events