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,459,764
Community Members
 
Community Events
176
Community Groups

Compare artifact with previous artifacts?

I have a scenario where a build generates a scoring number (in our case, it's a code coverage percentage).  We'd like to consider having a check in a build to compare that coverage with the previous build (immediately previous build) and make decisions about that (flag a warning message, notify someone, fail the build, something like that) based on the results of that.

It gets hairy once we start talking about branched builds too (just what is the previous build/artifacts, for example), but it's possible we may only require that on certain branches.

1 answer

I suggest using a script task, to be clear write a script using script task with below steps

  • grab previous coverage percentage,
  • execute your calculations and
  • fail/success build. 

Hrm.  The hard part is the first bullet there: I'd need to store that somewhere that could be easily referenced, plus I'd have to have a lot of logic in the script to figure out what is the previous percentage (which build, on which branch, from where), plus how do you determine previous without having to parse a ton of git logs/shasums to guesstimate it)

Maybe store as an artifact, but how to access a previous build's artifacts (assuming you can guess what the "previous build" was).

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events