hi all...

I'm using "This build is parameterized"  in jenkins. and choice name is 
DBName.. there are 3 options. I used an xml file like..

<project name="userinput" default="userinput">
<target name="userinput">
 <if>
<equals arg1="${DBName}" arg2="MySQL-8" />
<then>
<echo message="selected DB is ${DBName}" />
</then>

<elseif>
<equals arg1="${DBName}" arg2="MSSQL-8" />
<then>
<echo message="selected DB is ${DBName}" />
</then>
</elseif>
<else>
<echo message="selected DB is ${DBName}" />
</else>
</if>
</target>
</project>

and while build this job I'm getting error like....


BUILD FAILEDD:\Atlas\userinput.xml:4: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 0 seconds
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to