You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.
Join groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hello,
I am using NX in my angular projected, and I would like to deploy/test only affected items during my PRs.
I created the following pipeline :
ds
# This is an example Starter pipeline configuration
# Use a skeleton to build, test and deploy using manual and parallel steps
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:12
definitions:
caches:
bundler: vendor/bundle
pipelines:
pull-requests:
- step:
name: 'Installation'
caches:
- node
script:
- npm install
artifacts:
- node_modules/**
- parallel:
- step:
name: 'Test'
script:
- npm run affected:test -- --base=origin/develop
- step:
name: 'Lint'
script:
- npm run affected:lint -- --base=origin/develop
- step:
name: 'Stylelint'
script:
- npm run affected:stylelint -- --base=origin/develop
branches:
develop:
-step:
name: 'Deploy Staging'
deployment: staging
script:
- npm run affected:build -- --base=origin/develop
Now, the last line don't work because, when the pipeline execute, the branch is already merged in develop so
npm run affected:build -- --base=origin/develop
Will do nothing as it is comparing to itself.
I would like to replace the --base=origin/develop with --base=$previousBuildSHA. But I am quite confused on how to retrieve it.
Calling all Confluence Cloud Admins! We created a new Community Group to support your unique needs as Confluence admins. This is a group where you can ask questions, access resou...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events