katalon-studio-samples / ci-samples

Sample configurations for various CI systems.
Apache License 2.0
54 stars 169 forks source link

Why do i have to run as root? #23

Closed O5ten closed 4 years ago

O5ten commented 4 years ago

Hello,

in the example Jenkinsfile it says that i have to run the container as the root user? Why is that? That means it will create any reports, logs and similar as the root user aswell meaning the Jenkins-user (who isn't root) will be unable to remove the workspaces that contains files it may not touch.

    agent {
        docker {
            image 'katalonstudio/katalon'
            args "-u root"
        }
    }
devalex88 commented 4 years ago

By default, Jenkins will map its user ID to the container, which prevents Katalon Studio and browsers to work properly. You can chmod any files created after the tests so that Jenkins will have enough access permissions.