5 Replies Latest reply on Aug 24, 2012 9:51 AM by Bill Robinson

    How do I setProperty for a Job




      I am trying to set property for a job after job creation, I did followings:



      --- Statements to openconnection and set options



      blcli_execute DeployJob listLocalPropertyNamesByGroupAndName "$JOB_GROUP" $JOB_NAME

      blcli_storeenv props echo $props


      --- This returns MW_PLATFORM, BAA_ENTR_ROOT



      blcli_execute DeployJob getDBKeyByGroupAndName "$" $JOB_NAME


      blcli_storeenv dBKey


      echo $dBKey




      This returns DBKey:SJobModelKeyImpl:2003927-1-0000000




      echo "blcli_execute  Job setPropertyValue $dBKey MW_PLATFORM $MW_PLATFORM"




      This returns "blcli_execute  Job setPropertyValue DBKey:SJobModelKeyImpl:2003927-1-0000000 MW_PLATFORM myplatform"




      blcli_execute  Job setPropertyValue $dBKey MW_PLATFORM $MW_PLATFORM




      I get error




      Command execution failed. com.bladelogic.om.infra.mfw.util.BlException: Unable to find property with name MW_PLATFORM in class Deploy Job 


      I should use DeployJob : setOverriddenParameterValue 





      What is the reason?










      Message was edited by: Daniel