I changed it as it caused a unit test to fail. I assumed this was due to the parameter and function name being the same when it did the conversion from int to string then called the string variant.

I'll happily change it back if you can explain to me why the test failed and the correct fix.

10:26:39.807 [DEBUG] [TestEventLogger] javaposse.jobdsl.dsl.helpers.step.StepHelperSpec > call copyArtifacts selector variants FAILED
10:26:39.808 [DEBUG] [TestEventLogger]     groovy.lang.MissingMethodException: No signature of method: java.lang.Integer.call() is applicable for argument types: (java.lang.String) values: [43]
10:26:39.808 [DEBUG] [TestEventLogger]     Possible solutions: wait(), abs(), any(), wait(long), and(java.lang.Number), any(groovy.lang.Closure)
10:26:39.808 [DEBUG] [TestEventLogger]         at javaposse.jobdsl.dsl.helpers.step.CopyArtifactContext.buildNumber(CopyArtifactContext.groovy:62)
10:26:39.808 [DEBUG] [TestEventLogger]         at javaposse.jobdsl.dsl.helpers.step.StepHelperSpec.call copyArtifacts selector variants_closure21(StepHelperSpec.groovy:611)
10:26:39.808 [DEBUG] [TestEventLogger]         at javaposse.jobdsl.dsl.helpers.step.StepHelperSpec.call copyArtifacts selector variants_closure21(StepHelperSpec.groovy)
10:26:39.809 [DEBUG] [TestEventLogger]         at javaposse.jobdsl.dsl.helpers.AbstractContextHelper.executeInContext(AbstractContextHelper.groovy:21)
10:26:39.809 [DEBUG] [TestEventLogger]         at javaposse.jobdsl.dsl.helpers.step.AbstractStepContext.copyArtifacts(AbstractStepContext.groovy:467)
10:26:39.809 [DEBUG] [TestEventLogger]         at javaposse.jobdsl.dsl.helpers.step.AbstractStepContext.copyArtifacts(AbstractStepContext.groovy:462)
10:26:39.809 [DEBUG] [TestEventLogger]         at javaposse.jobdsl.dsl.helpers.step.AbstractStepContext.copyArtifacts(AbstractStepContext.groovy:458)
10:26:39.809 [DEBUG] [TestEventLogger]         at javaposse.jobdsl.dsl.helpers.step.AbstractStepContext.copyArtifacts(AbstractStepContext.groovy:454)
10:26:39.809 [DEBUG] [TestEventLogger]         at javaposse.jobdsl.dsl.helpers.step.StepHelperSpec.call copyArtifacts selector variants(StepHelperSpec.groovy:610)