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,367,569
Community Members
 
Community Events
168
Community Groups

Pipelines are not run automatically from branch

Hi problem is that pipelines are not run automatically when I merged with master branch or another brunch. My code has branches: master: but it is not trigered automatically after merge. Could you please help me?

{code:xml}

image:
name: docker file
aws:
access-key: $AWS_ACCESS_KEY_ID
secret-key: $AWS_SECRET_ACCESS_KEY
options:
max-time: 60
# used because whe has a lot of issues with OutOfMemory used gradle on pipelines
size: 2x
pipelines:
default:
- step:
name: Build and test
caches:
- gradlecache
- gradlewrapper
script:
- chmod +x gradlew
- echo "$ANDROID_MLITE_KEYSTORE" | base64 -di > /opt/atlassian/pipelines/agent/build/app/app-release-key.jks
- bash ./gradlew clean build
artifacts:
- app/build/outputs/apk/*/*/*.apk

branches:
# Release version for customers
master:
- step:
name: Build live
caches:
- gradlecache
- gradlewrapper
script:
- chmod +x gradlew
- echo "$ANDROID_MLITE_KEYSTORE" | base64 -di > /opt/atlassian/pipelines/agent/build/app/app-release-key.jks
- bash ./gradlew clean assembleLive
artifacts:
- app/build/outputs/apk/*/*/*.apk
- step:
name: Deploy the live apps to AppCenter
deployment: production
image:
name: docker
aws:
access-key: $AWS_ACCESS_KEY_ID
secret-key: $AWS_SECRET_ACCESS_KEY
script:
- echo "Upload artifacts to AppCenter"
...


{code}

0 comments

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events