Not able to run two different test scripts within the same project

Summary

When trying to run a pipeline that requires 2 test validations:

  1. puppet-lint
  2. puppet parser validate

Only one is performed the other one gets permission restrictions. See error message: Running with gitlab-ci-multi-runner 1.10.7 (bc69744) Using Shell executor... su: cannot open session: Permission denied ERROR: Build failed: exit status 1

Steps to reproduce

Click on run pipeline and 1 on the test verification scripts run

Actual behavior

Only one test validation gets execute and the other one doesn't

Expected behavior

both test validation should get executed

Relevant logs and/or screenshots

Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise. Please paste both build log and Runner's log.

Environment description

Using a gitlab internal paid gitlab EE

Used GitLab Runner version

gitlab-runner --version Version: 1.11.1 Git revision: a67a225 Git branch: 1-11-stable GO version: go1.7.5 Built: Fri, 03 Mar 2017 12:35:58 +0000 OS/Arch: linux/amd64

gitlab-ci-multi-runner --version Version: 1.11.1 Git revision: a67a225 Git branch: 1-11-stable GO version: go1.7.5 Built: Fri, 03 Mar 2017 12:35:58 +0000 OS/Arch: linux/amd64

I am using the following gitlab-ci.yml:

stages:

  • "Validate"
  • "Unit test" puppet-lint: stage: "Validate" tags:
    • test allow_failure: true script:
    • pwd
    • gem env #- gem install --user-install puppet-lint #- ls -ltra ~
    • whoami
    • echo $CI_PROJECT_DIR
    • chmod 755 $CI_PROJECT_DIR/manifests #- cd $CI_PROJECT_DIR/manifests
    • puppet-lint $CI_PROJECT_DIR/manifests/*.pp #- puppet-lint *.pp

puppet-parser-validate: stage: "Validate" tags: - test allow_failure: false script: - pwd - gem env #- gem install --user-install puppet-lint #- ls -ltra ~ - whoami - echo $CI_PROJECT_DIR - chmod -R 755 $CI_PROJECT_DIR - puppet parser validate ./$CI_PROJECT_DIR

Assignee Loading
Time tracking Loading