Project

General

Profile

Actions

tickets #65585

closed

gitlab CI: deploy_job fails with sudo error

Added by cboltz about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Configuration management (CM)
Target version:
-
Start date:
2020-04-13
Due date:
% Done:

0%

Estimated time:

Description

(initially reported 2020-04-10 as #65549, but that ticket was accidently deleted)

The deploy_job in gitlab fails:

$ sudo salt-call event.fire_master $CI_DEPLOY_PASSWORD salt/fileserver/gitfs/update
00:00
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.
sudo: no tty present and no askpass program specified
ERROR: Job failed: exit status 1

Please add the needed sudo rule on the CI runners.

(follow-up comment from 2020-04-10)

on gitlab-runner2, you'll also need to zypper in sudo

Actions

Also available in: Atom PDF