title: pushing a image to Openshift with a Jenkins file
body: <p>I do have images in my registry but now I want to validate my docker builds with a Jenkins file and later do blue green deployments. However I am getting the following error:</p>
  
  <pre><code>error: The server uses a certificate signed by unknown authority. You 
  may need to use the --certificate-authority flag to provide the path to 
  a certificate file for the certificate authority, or --insecure-skip-
  tls-verify to bypass the certificate check and use insecure 
  connections.
  </code></pre>
  
  <p>Jenkins file:</p>
  
  <pre><code>node {
  
      stage('Checkout source control') {
        checkout scm
      }
  
      stage('connect') {
         sh "oc login &lt;my URL&gt; --token=&lt;my token&gt;"
      }
  
      stage('build api container') {
          sh "oc new-build --name=api --binary=true"
          sh "oc start-build api --from-dir=docker/api --follow"
      }
  
  }
  </code></pre>
  
  <p>Any advice would be greatly appreciated. I have thought of ways but this one seems to fit my needs the best.</p>
  
  <p>I am also not using minishift, I am just wanting to pull multiple repositories and check the build.  </p>
  
  <p>When I remove the login I get the following error:</p>
  
  <pre><code>[workspace] Running shell script
  
  + oc new-build --name=api --binary=true
  
  Unable to connect to the server: Service Unavailable
  
  script returned exit code 1
  </code></pre>