I have the same error, but when I run the "puppet agent -t" command with a Jenkins job in a Windows environment
In Jenkins I have a Job with Powershell scripts that calls the PUPPET AGENT -T Thanks in Advanced Em quinta-feira, 29 de outubro de 2015 11:41:47 UTC-2, Wei Chen escreveu: > > Hi, > > I created a job in Jenkins which will start the puppet agent with command: > puppet agent -t > > This command works fine under LINUX. > > But as I build the job in Jenkins I got following errors: > ... > > Started by user anonymous <http://172.23.17.40:8080/user/null> > Building in workspace /var/lib/jenkins/jobs/TestPuppet/workspace > [workspace] $ /bin/sh -xe /tmp/hudson50649338283499454.sh > + puppet agent -t > [1;35merr: /File[/home/jenkins/.puppet]/ensure: change from absent to > directory failed: Cannot create /home/jenkins/.puppet; parent directory > /home/jenkins does not exist [0m > [0;36mnotice: /File[/home/jenkins/.puppet/ssl]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/ssl]: Skipping because of failed > dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/ssl/private]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/ssl/private]: Skipping because of > failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/ssl/certificate_requests]: > Dependency File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/ssl/certificate_requests]: > Skipping because of failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/var]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/var]: Skipping because of failed > dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/var/log]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/var/log]: Skipping because of > failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/var/facts]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/var/facts]: Skipping because of > failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/var/clientbucket]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/var/clientbucket]: Skipping > because of failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/var/state]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/var/state]: Skipping because of > failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/var/state/graphs]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/var/state/graphs]: Skipping > because of failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/var/lib]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/var/lib]: Skipping because of > failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/var/client_data]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/var/client_data]: Skipping > because of failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/ssl/private_keys]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/ssl/private_keys]: Skipping > because of failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/var/client_yaml]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/var/client_yaml]: Skipping > because of failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/var/run]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/var/run]: Skipping because of > failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/ssl/public_keys]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/ssl/public_keys]: Skipping > because of failed dependencies [0m > [0;36mnotice: /File[/home/jenkins/.puppet/ssl/certs]: Dependency > File[/home/jenkins/.puppet] has failures: true [0m > [0;33mwarning: /File[/home/jenkins/.puppet/ssl/certs]: Skipping because of > failed dependencies [0m > Could not prepare for execution: Got 1 failure(s) while initializing: change > from absent to directory failed: Cannot create /home/jenkins/.puppet; parent > directory /home/jenkins does not exist > Build step 'Execute shell' marked build as failure > Finished: FAILURE > > > > > > Can someone help? > > > > Regards > > -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/60422f5c-0872-487b-aa1b-5c2e56693fdf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.