title: cURL request in jenkins pipeline with hidden token and key
body: <p>I'm trying to find a better way to run a remote jenkins job using curl requests.</p>
  
  <p>My current pipeline setup is as follows:</p>
  
  <pre><code>parallel firstBranch: {
      build 'erp_load'
    },
      secondBranch: {
      build 'erp_load2'
    },
      thirdBranch: {
      build 'erp_load3'
    }
    failFast: true
  
  node {
      sh 'curl -X POST http://user:xxxkeyxxx@remote_host.com/job/flow_one/build?token=\'xxxtokenxxx\''
  }
  </code></pre>
  
  <p>But I want to find a better way to do this cURL request without having to explicitly write my token and keys in it.</p>
  
  <p>One way I am now doing is to build a python script that calls my credentials library and runs a shell command using the os module like this:</p>
  
  <pre><code>import os
  import credentials
  
  os.system('curl -X POST http://user:{0}@remote_host.com/job/flow_one/build?\
  token=\'{1}\''.format(credentials.key,credentials.token))
  </code></pre>
  
  <p>I was wondering if it is possible to do this directly in jenkins without compromising the key and token elements of the call, and without using an additional workflow like a script in python.</p>