multiple conditions in Build Forge adaptor
I am making some changes to our adaptor to accommodate executing builds based on dependency changes. Because we have a number of different build types(.net, maven, ant, etc) using this adaptor, so I only want to execute the commands to check for new dependencies if it is a maven type build. So my question is can you have two conditions for running a command: condition="hastext($Dep)" && "true(${MAVEN_Build} eq True)"". The "Dep" variable has text if we don't find any source code to accept into the RTC WorkSpace. I haven't found a combination that will evaluate both variables correctly.
|
Be the first one to answer this question!
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.
Comments
I wasn't able to figure out how to use two conditions within the run command. What I ended up doing was amending strings to an existing variable. For example, if MAVEN_Build= True is set a variable(Dep) to True initially, and if no changes were found, and I need to look for dependency changes I set Dep =TrueTrue. This ensures I only look for dependency changes if it is a maven build, and no source changes were found.