title: How to execute a script located in the runner from the ci-pipeline?
body: <p>I have a gitlab-runner image as follows:</p>
  <p><strong>Dockerfile</strong></p>
  <pre><code>FROM alpine:3.6
  
  RUN apk add --no-cache curl bash
  
  COPY trigger-jenkins /usr/local/bin/trigger-jenkins
  
  ENTRYPOINT [&quot;/bin/bash&quot;]
  </code></pre>
  <p>Its purpose is to trigger a Jenkins job. Running this with:</p>
  <pre><code>docker run -ti jenkins-runner:latest trigger-jenkins job_name
  </code></pre>
  <p>works perfectly fine. But when I tried to do the same by:</p>
  <p><strong>.gitlab-ci.yml</strong></p>
  <pre><code>Jenkins Trigger:
    script:
      - trigger-jenkins job_name
    tags:
      - Jenkins
  </code></pre>
  <p>The pipeline fails like this:</p>
  <pre><code>Running with gitlab-ci-multi-runner 9.3.0 (3df822b)
    on Jenkins Trigger (12475d61)
  Using Docker executor with image jenkins-runner:latest ...
  Using docker image sha256:44dedf0b3485e0e57107e2745739e1a252fb64c4161465e1b5ccc1119a1183bf for predefined container...
  Using docker image jenkins-runner:latest ID=sha256:4760a8ef9139ee9c9a56c686de780fc49e176fe4294e1f0db4f431e117b6811c for build container...
  Running on runner-12475d61-project-6-concurrent-0 via cc960a3794a0...
  Cloning repository...
  Cloning into '/builds/dev/Project'...
  Checking out 874b2eac as test/jenkins...
  Skipping Git submodules setup
  /bin/sh: /bin/sh: cannot execute binary file
  /bin/sh: /bin/sh: cannot execute binary file
  ERROR: Job failed: exit code 126
  </code></pre>
  <p>I searched for the error code, but was not able to find an explanation.</p>
  <p>What am I missing?</p>