Jenkins does not like the C syntax for incrementing variables

However, the variable is only incrementing inside the block...