Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Abu Bakir Uralov September 15, 2022

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
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 16, 2022

@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

Abu Bakir Uralov September 16, 2022

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

Abu Bakir Uralov September 16, 2022

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

Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 19, 2022

@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
AUG Leaders

Atlassian Community Events