Jenkins pushes app to wrong target
<p>we continuously build our apps with Jenkins and deploy them to our different spaces:</p>

<pre><code>...
cf login -a https://api.lyra-836.appcloud.swisscom.com -u ...
cf target -s development
cf push scs-flux-monitoring-development
...
</code></pre>

<p>Now we recognized that the push is sometimes taking a wrong space to install the app. We think this is because of another Jenkins Job doing a parallel push. As far we can see the .cf/config.json stores the name of the Space and when another cf target is called all pushes are using that new target.</p>

<p>Anyone who recognized that behaviour also? Any suggestions to solve that?</p>

<p>Kind regards</p>

<p>Josef</p>