Fix issue of invalid order of task's actions.
Fix issue of invalid order of task's actions.

Because of the nature of promises, the callback context is not the same as the (wrapping) for loop. To fix this inconsistency, a new internally used `scope`-property `__idx` was introduced.

knalli/pi-jenkins,knalli/pi-jenkins