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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,559,207
Community Members
 
Community Events
184
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
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 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

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

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