Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Adaptor links versus .source adaptor

Our source type adaptors used via adaptor links successfully run, and cancel/purge the build forge project when there are no souce code changes.

However, when we remove the adaptor links, and insert a new step (step 1) in the build forge project and have the step run a dot command (.source our-adaptor), the step fails, as it should, when there is no source code changes but the project does not get cancelled/purged.  It just stays in the failed state, which is not wanted.

Any ideas appreciated ...

thank you,

 

1 vote



3 answers

Permanent link
 look at the trigger variable _CI_BUILD_DELETE

If that variable is set, when the build completes, it will be purged and the build tag decremented. 


1 vote


Permanent link
 Hi Christopher,

It is recommended to add the variable to the project or to the particular step environment.  Using the .bset or .tset would make the variable available for followup steps (not the current). Adaptor Links are far different from dot commands in Build Forge. Adaptor Links run as a prestep to the build itself. This means the Link fires first and if the condition is not met, the build is never actually executed. Dot commands require the build start and execute a step. 

1 vote


Permanent link
Thanks for the reply ....

We don't already have this variable in our project environments, yet the adaptor link works.

Is it recommended that we add this variable to our environment variables to be able to use the .source command?  Or will .bset/.tset work?

thanks,

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 21 '13, 9:29 a.m.

Question was seen: 5,933 times

Last updated: Apr 22 '13, 11:42 a.m.

Confirmation Cancel Confirm