Home:ALL Converter>Jenkins freestyle project running as SYSTEM conversion to Pipeline project

Jenkins freestyle project running as SYSTEM conversion to Pipeline project

Ask Time:2021-08-23T22:55:20         Author:acm

Json Formatter

When I run a freestyle project in Jenkins server, here are the first two lines from the logs:

Started by user {username}
Running as SYSTEM

Question: What is SYSTEM referring to here? Is it root user?

I am trying to write pipeline script for the above mentioned freestyle project in Jenkins and here is the first few lines of its log.

Started by user {username}
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/test-pipeline

Question: I don't think it is Running as SYSTEM. It must be running as JENKINS user. I see some projects that I am trying to convert from free style to pipeline scripts are failing due to reasons like "acl not found" or "npm install issues". When I run free style projects, they run without any issues. Any idea how I can let the pipeline scripts Run as SYSTEM?

Author:acm,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/68894827/jenkins-freestyle-project-running-as-system-conversion-to-pipeline-project
yy