Posts

Showing posts with the label jenkins

What is a good tool for testing R packages when a new commit happens in Git? [closed]

What is a good tool for testing R packages when a new commit happens in Git? [closed] I am looking for something similar to Jenkins which can test a R package when a new commit or pull requested in Git against a standard test data set. This question appears to be off-topic. The users who voted to close gave this specific reason: 1 Answer 1 I use travis to control my package: (same as devtools::check) and codecov to check my code coverage. To sse how I set them up, you can check my package dataPreparation and look into my .travis.yml Wonderful! thanks a lot.! – pyBug Jul 2 at 15:02 If i solved your problem, consider giving a +1 and validate the answer – Emmanuel-Lin Jul 2 at 18:26 ...

Shell Jenkins job reading text from file with variables

Shell Jenkins job reading text from file with variables I am implementing Jenkins job in bash shell script. Jenkins jobs is using the variable AS_OF_DATE which can be used as input for users. AS_OF_DATE I also have some files on zone with text that I grep during the execution of this jenkins job. So user will start the jobs and given parameters is: AS_OF_DATE: "20180331" AS_OF_DATE: "20180331" Then during the job I grep some text from test.txt file. test.txt TEXT_FROM_FILE="This is my text, where i used ${AS_OF_DATE}" And when I do the echo of $TEXT_FROM_FILE , variable $AS_OF_DATE is not changed with the date that user added. $TEXT_FROM_FILE $AS_OF_DATE My outcome is: "This is my text, where i used ${AS_OF_DATE}" What it should be: "This is my text, where i used 20180331" "This is my text, where i used 20180331" I assume that I am not declaring the variable inside the file correctly, so my question is hot to correctly spe...

How can I hidden folder view on Jenkins?

Image
How can I hidden folder view on Jenkins? I wanna hidden All, Dashboard, Netsted view, Sectioned view and keep categorized per a user on Jenkins. How can I do it? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

jenkins build failure shell command permission denied

jenkins build failure shell command permission denied I am trying to run shell build command on mac but I get permission denied for e.g. ls /Users/... command. permission denied ls /Users/... I see whoami is jenkins , which is different for my uesr login? whoami jenkins I read online I need to run chmod for jenkins user, how do I do that? I changed file permission using chmod 777? Do I need to change jenkins user? The ... in your ls command is important for us to see, don't shorten it. Also "run chmod for jenkins user" means nothing to me. chmod what file/directory? You changed file permissions, on what? – Kusalananda Jun 19 '16 at 8:45 ... ls chmod 3 Answers 3 Maybe you have a problem that jenkins is not a full user. Try this: j...

Passing the PASSWORD credentials variable from Jenkins to sshpass in a script

Passing the PASSWORD credentials variable from Jenkins to sshpass in a script I've setup some global credentials in jenkins, username password type. I've now got to scp a file over to a target server inside my pipeline. For arguments sake, lets say my password variable is secretpassword. Does anyone know how to get the password to work properly with sshpass? Here's the gist of what I'm trying to do sh ''' sshpass -p'${PASSWORD}' scp ${WORKSPACE}/target/citest-1.0-SNAPSHOT.jar root@target_service:/ ''' Whatever I try I can't seem to get the syntax right for passing the password to sshpass If I do the following, it works fine sh ''' sshpass -p 'secretpassword' scp ${WORKSPACE}/target/citest-1.0-SNAPSHOT.jar root@target_service:/ ''' So I'm obviously just messing up how to get the PASSWORD env variable to spit out properly into the single quotes. I seem to have tried a few thousand options so far, doe...