I am trying to use the API to pin a build automatically but it seems I need access to the
internal_build_id, list under Yegor's comment:
I followed this thread which might do what I need, but I just wanted to check to see if there was a better way to achive this or access the buildId?
I have a build task that calls a task that runs some tests and that in turn calls a publish task. I need a way to pin the build task after success of the publish taks, so the undocumented REST API to pin a build is exactly what I need. I am struggling to access the buildId of the build task from the publish task in an automated way.
The publish task sometimes fails for good reason such as another build dependecy boke. The problem is that other builds are dependent upon the build task, and when the publish task fails, they get out of sync and cause us major problems. I wan the configurations that are dependent on the build task, to only use the latest pinned build to ensure everything matches up.
thanks in advance.Jason