Hello,
I’m trying to build a simple pipeline that use the local machine (CENTOS) as the deault executor using shell option.
Here’s the OS release.
$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="[https://www.centos.org/"](https://www.centos.org/%22)
BUG_REPORT_URL="[https://bugs.centos.org/"](https://bugs.centos.org/%22)
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
However, the runner keeps on accepting the same job without carrying out the commands as shown in image below.
And from gitlab side:
Running with gitlab-runner 16.3.0 (***)
[2]on LOCAL_MACHINE_RUNNER ***, system ID: ***
[3]**Preparing the "shell" executor** 00:00
[4]Using Shell (bash) executor...
[6]**Preparing environment** 00:02
[7]Running on ***.com...
[9]**Getting source from Git repository**
[10]**Fetching changes with git depth set to 20...**
[11]Reinitialized existing Git repository in ~/builds/***/0/intro1173525/local_machine_demo/.git/
[12]Checking out c56b3313 as detached HEAD (ref is main)...**
[13]Skipping Git submodules setup**
The .gitlab-ci.yml file is as below:
stages:
- dummy
dummy-job:
stage: dummy
tags:
- shell
script:
- ls ~/some_folder -l
Here’s my config.toml file:
concurrent = 1
check_interval = 0
shutdown_timeout = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "shell2"
url = "https://gitlab.com/"
id = ***
token = "***"
token_obtained_at = 2023-08-25T07:48:15Z
token_expires_at = 0001-01-01T00:00:00Z
executor = "shell"
[runners.cache]
MaxUploadedArchiveSize = 0
gitlab repo is created in builds under my user directory, however, the logs do not show much info.
P.S: docker executors registered on the same machine works perfectly well.
May you please help in this.
Thanks…