Can I store Shell commands in Git for a Jenkins job and run that job which needs these scripts

2019-07-28 Thread Vijay Gongle
Hi, I have a Jenkins freestyle/Maven job which has a bunch of shell script in the post steps written. Can I store these scripts in the Git and use it when someone runs the proejct. Note: SCM is configured with its appropriate repo url where the actual code is pulled. And these shell scripts

Re: running shell commands in pipeline fails on pushd and source

2018-12-10 Thread 'Carsten' via Jenkins Users
Hi, It was a "SHELL"-Engine issue indeed. I changed the call to this: > > "... > myresult=sh(script: 'bash deploy.sh', returnStdout: true) > ..." > > and everything works fine, now. Thanks for the hint. br Carsten -- You received this message because you are subscribed to the Google Groups

Re: running shell commands in pipeline fails on pushd and source

2018-12-07 Thread Mark Waite
That seems to hint that the shell invoked on that agent by the Pipeline script is not compatible with the shell syntax you're using. For example, is the shell on that agent inadvertently configured to be 'dash' instead of 'bash'? Is it configured to be 'csh' instead of 'bash'? https://askubuntu.

running shell commands in pipeline fails on pushd and source

2018-12-07 Thread 'Carsten' via Jenkins Users
Hi list, in a jenkinsfile I trigger a bash script like so: "... myresult=sh(script: 'deploy.sh', returnStdout: true) ..." the script starts but returns errors like these: "command not found: pushd" "command not found: source" And for some reasons it is not able to do such things: "...

Re: Issue with running csh commands in the jenkins "Execute Shell" commands

2016-06-25 Thread sivarajesh jarugula
iases there. You should also look into using something more > modern like bash. > > On Thursday, June 23, 2016 at 12:36:21 PM UTC-4, sivarajesh jarugula wrote: >> >> I am running a Jenkins parameterized build along with having csh commands in >> the "Exeute Shwll&q

Re: Issue with running csh commands in the jenkins "Execute Shell" commands

2016-06-24 Thread Martin d'Anjou
along with having csh commands in > the "Exeute Shwll" WIndow/ > my shell commands: > #!/bin/csh > echo "hu ha" > > > I am getting the following error: > [workspace] $ /bin/csh -xe /tmp/hudson3705530096260628757.sh > alias: No match. > Build

Issue with running csh commands in the jenkins "Execute Shell" commands

2016-06-23 Thread sivarajesh jarugula
I am running a Jenkins parameterized build along with having csh commands in the "Exeute Shwll" WIndow/ my shell commands: #!/bin/csh echo "hu ha" I am getting the following error: [workspace] $ /bin/csh -xe /tmp/hudson3705530096260628757.sh alias: No match. Build step &#

Re: Jenkins Task - Is it possible to add a windows shell commands as a step ( on Windows salve) inside a Linux master job.

2016-03-11 Thread Jakub Gladykowski
Hi, While installing GIT, many UNIX commands can be installed and added to path https://git-scm.com/ Then you can execute some shell commands on Windows slave. This is fast approach. Full approach would involve installing CYGWIN or some other stuff. On Friday, March 4, 2016 at 9:10:32 AM UTC

Re: Jenkins Task - Is it possible to add a windows shell commands as a step ( on Windows salve) inside a Linux master job.

2016-03-10 Thread Francois Marot
dd to a master job that runs on Linux , some windows > shell commands step on windows slave inside a Linux master job. > Let's say a , how to run windows commands step on slave when running a job > on Linux master. > Hope I am describing my question correct . > > Thanks in Advan

Re: Jenkins Task - Is it possible to add a windows shell commands as a step ( on Windows salve) inside a Linux master job.

2016-03-10 Thread James Nord
Yes - use the https://wiki.jenkins-ci.org/display/JENKINS/DistFork+Plugin with appropriate labels. Or change your job type to pipeline that will allow you to use multiple `node`s /James On Sunday, March 6, 2016 at 10:48:10 PM UTC, jpd4nt wrote: > > Hi > > Either run the job on a windows slave

Re: Jenkins Task - Is it possible to add a windows shell commands as a step ( on Windows salve) inside a Linux master job.

2016-03-06 Thread jpd4nt
Hi Either run the job on a windows slave and SSH back to a Linux box to run anything you can't on a windows box Or try: https://chocolatey.org/packages/win32-openssh

Re: Jenkins Task - Is it possible to add a windows shell commands as a step ( on Windows salve) inside a Linux master job.

2016-03-06 Thread Eldad Cohen
Hi, Thanks for your response. I have to connect to a windows slave since My IT have provided for me some management scripts in Power shell. There is not other option from a Linux machine to do the scripts. That is the reason I need to run a step from windows slave in my Linux master job, Thanks

Re: Jenkins Task - Is it possible to add a windows shell commands as a step ( on Windows salve) inside a Linux master job.

2016-03-04 Thread jpd4nt
Hi Eldad. What are you trying to achieve? Is there any reason you can't run the job on the Windows slave? On Friday, 4 March 2016 08:10:32 UTC, Eldad Cohen wrote: > > Hi, > > Is it possible to add to a master job that runs on Linux , some windows > shell commands step on wi

Jenkins Task - Is it possible to add a windows shell commands as a step ( on Windows salve) inside a Linux master job.

2016-03-04 Thread Eldad Cohen
Hi, Is it possible to add to a master job that runs on Linux , some windows shell commands step on windows slave inside a Linux master job. Let's say a , how to run windows commands step on slave when running a job on Linux master. Hope I am describing my question correct . Thanks in Adv

Re: workflow shell commands on a freebsd host consistently fail

2015-11-09 Thread Nick Witkowski
Well at least I know I'm not alone. Thanks for the feedback. I'll be sure to post back if I find a solution. Nick On Sat, Nov 7, 2015 at 5:46 PM, wrote: > I know this is unhelpful, but I just wanted to let you know I've run into > the same issue. > > I have a very basic Jenkins setup with a fai

Re: workflow shell commands on a freebsd host consistently fail

2015-11-07 Thread mstudenka
I know this is unhelpful, but I just wanted to let you know I've run into the same issue. I have a very basic Jenkins setup with a fairly complex multi-platform C++ build/package/deploy setup that I've tried to convert to a workflow script. Everything was going well until I added the freebsd b

workflow shell commands on a freebsd host consistently fail

2015-11-06 Thread Nick Witkowski
Hello, I'm trying to test the workflow plugin on a freebsd node. The following fails consistently: node('freebsd10-slave') { sh "sleep 30" } Here is the output: Started by user Witkowski, Nicolas Running: Allocate node : Start Running on freebsd10-slave in /app/jenkins/workspace/cif-wo

Re: Shell commands

2015-09-13 Thread thilinam
Hi Thanks a lot. cheers Thilina. On Friday, September 11, 2015 at 3:15:56 PM UTC+5:30, mr wrote: > > What do you mean with a "separate terminal"? > > Maybe is one of these enough for you: > >- https://wiki.jenkins-ci.org/display/JENKINS/SSH+plugin >- https://wiki.jenkins-ci.org/display/

Re: Shell commands

2015-09-11 Thread mr
What do you mean with a "separate terminal"? Maybe is one of these enough for you: - https://wiki.jenkins-ci.org/display/JENKINS/SSH+plugin - https://wiki.jenkins-ci.org/display/JENKINS/XShell+Plugin - https://wiki.jenkins-ci.org/display/JENKINS/Shells -- You received this message

Shell commands

2015-09-09 Thread thilinam
hi Is there any plugin or way to execute shell commands in a separate terminal ? Thanks. -- 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 jenki