An example:
I am using autoinc feature in teamcity so whenever I change the version of my build I would like to change it only in one place.
%buildversion% is 5.0
so I would like to do the following:
%autoinc.buildname_%buildversion%%
to get %autoinc.buildname_5.0%.
Basically every time I change the version autoinc counter will be reseted.
Create the Paraemters
Create a Combined Paramter
Related
I have a maven job that runs a pom.xml file with some goals I provide like below:
Pom File: pom.xml
goals: test -DsuiteName=testng.xml
Now I want to add a radio button parameter into this job "Run_Failed_Cases_Only", if user selects this then instead of testng.xml I want to pass testng-failed.xml file. like below:
Pom File: pom.xml
goals: test -DsuiteName=testng-failed.xml
So what I want is if there is any way I can use windows batch command step, that will check if "Run_Failed_Cases_Only" is selected then pass a variable $goals to the build step as per the condition below:
if(Run_Failed_Cases_Only is selected)
$goals = "test -DsuiteName=testng-failed.xml"
else
$goals = test -DsuiteName=testng.xml
then I will use this variable in the goals text box.
When you have created the Maven Project job, select the option This project is parametrized from General tab. If the Extensible Choice Plugin is not installed, install it then you can find the same here in This project is parametrized
Please find the screenshot below.
Then, you can use the specific condition based on the choice parameter.
OR
Alternatively, You can also use Generator Choice parameter available in This project is parameterized to get the result.
Please find the screenshot.
Then, you can use the specific condition based on the choice.
Solved this by using Extended Choice Parameter and providing different display name and values like below:
then used this parameter as variable in POM like below:
I need to put the current flow version (as in the version number in NiFi Registry) on the properties of each flow file.
I know that I can use Expression Language to get system properties. Is there a property that contains the current version?
The version number is not something that is currently accessible from expression language. The only thing you could do right now would be to put an UpdateAttribute processor as the first processor inside the versioned process group, and set an attribute like "nifi.registry.version", but you'd have to keep the value up to date when you save the new version of the flow so that it is checked in to registry with next version.
I have created a new mapping in Informatica and I defined a mapping parameter $$LAST_EXTRACT_DATE (this is already defined in DAC(as it is working for out of box mappings)). However, When DAC is executing, this variable is not getting its values in parameter file of mapping. Other mappings are working fine. It's just this mapping which has an issue. I am trying to make this mapping to run in incremental.
Any suggestions please?
Yogesh,
I assumed that your mapping run with no issue and parameter $$LAST_EXTRACT_DATE are being replaced with a correct date through the DAC. You don't parameter file if you using DAC to run mapping. A parameter file is needed when you start the task from Informatica.
Make sure that the same file is used while running through DAC, as it's possible to run workflows in two ways:
just starting a workflow will make it read parameter file specified in the properties
starting workflow with indicated parameter file will make it read the given file INSTEAD OF the one specified in the properties.
I am using icCube 5.0 Reporting
I want to assign the value of an Event to that returned by the icCube MDX function UserName()--sort of like #{eventname} = UserName().
Eventually, #{eventname:reportParm} will be sent to a launched report for use in a filter.
Does anyone have any hints for me?
There is no clean way (already in todo list)
For the time being there is no clean way. You've to create a Constant - not an event - in Configuration/Constants that you call for example
ic3c-userName
Assign a javascript expression
:ic3reporting.context_.userInfo().name()
So you've now an event with the name of the user as value you can use.
From version 5.0.3 you can use the new syntax.
For user name:
:ic3reporting.userName()
also you can access the report's name by
:ic3reporting.reportName()
I'm working on importing (on a regular basis) about 6,000 items into Magento using Magmi. I've got nearly everything configured the way I need it, but I have one issue.
I need to concatenate 3 columns from my .csv file to create a "category_ids" column. I'm using the Value Replacer plugin with the following value:
{item.departmentid},{item.classid},{item.subclassid}
This works well, however I need to then map this field to another field using the Generic Mapper plugin. Both functions work individually, however I need the Value Replacer to run BEFORE the Generic Mapper. As best as I can tell, it appears the Generic Mapper runs first. Is there a way I can alter the execute order for these two plugins?
Thanks for the help!
Update for Dweeves:
Doh! I totally overlooked that section while trying to figure this out. Now that I've gone through it, I might need a little more help. Right now I've using just the Value Replacer plugin with the following settings:
Replaced attributes: category_ids
New value for category_ids:
{{ ValueRemapper::use_csv('/var/www/magmi/category_ids.csv')->map({item.departmentid},{item.classid},{item.subclassid}) }}
It doesn't seem to be working as I intended it to, but I'm a systems guy and not a PHP programmer. Any help?
2nd Edit
I got it working by using the Value Replacer function to first concatenate everything into a new "test" column, then using the Value Replacer Value Mapper function to create the category_ids column with the mapped values. Confusing, but it's working well.
You can use the ValueRemapper helper of Value Replacer plugin for this kind of purpose.
See Value Replacer Plugin Documentation (ValueRemapper helper section)
To answer your original question (how to define the order the plugins run in).
From my experience, the plugins are loaded in order of their plugin filename.
For example, if you look at magmi/plugins/base/itemprocessors/importlimiter, you will notice that the filename for the plugin is 01_importlimiter.php.
If you look in the genericmapper plugin folder, you'll notice the plugin filename to be 02_genericmapper.php.
With this being said, 01_importlimiter.php will execute before 02_genericmapper.php.