The declarative Pipeline includes an implicit checkout of the repository on each agent that will be performing a step. When you add the `node` step, declarative Pipeline attempts to perform a checkout on that node. If you don't need that default checkout, the `skipDefaultCheckout` option is available.
If you need that default checkout, then you probably need to fix the file system permissions of the /export/homes/my_user/.ssh directory so that the user executing the Pipeline job can read the .$HOME/.ssh directory. Command line git uses `ssh` to authenticate and clone repositories using the secure shell protocol.
If the `/export/homes/my_user` directory is accessed over NFS, then you may also need to assure that the agent process is not running as root. Root access over NFS is usually not allowed.
You could check for those types of conditions in your environment with a Jenkinsfile something like this:
pipeline {
options {
skipDefaultCheckout()
}
agent {
node {
label "!windows"
}
}
stages {
stage('Report username') {
steps {
sh 'id'
}
}
}
}
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0f7c8c1c-c1a8-4495-8be5-d00b5c5997ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.