Code Monkey home page Code Monkey logo

Comments (5)

hernan82arg avatar hernan82arg commented on May 25, 2024 1

Worked brother! thanks

from capistrano-scm-jenkins.

jeffbyrnes avatar jeffbyrnes commented on May 25, 2024

@hernan82arg are you referring to line 146 of jenkins.rb in v0.5.1?

Based on this Stack Overflow answer, we’d need to run shopt -s dotglob, but I’m not sure it will have an effect, owing to the nature of how Cap runs commands.

Thankfully, found this other SO answer that looks like it’ll do the trick. I’ll update the command and cut a patch release, would you mind testing it?

from capistrano-scm-jenkins.

hernan82arg avatar hernan82arg commented on May 25, 2024

Hi brother, yes, I was referring to that line :)
I'm getting this now:

  INFO [e8bc0c4c] Running /usr/bin/env mv out/{.[!.],}* /opt/node/changes/releases/20160719124329 as [email protected]
 DEBUG [e8bc0c4c] Command: cd /opt/node/changes/repo && /usr/bin/env mv out/{.[!.],}* /opt/node/changes/releases/20160719124329
 DEBUG [e8bc0c4c]   mv: cannot stat ‘out/{.[!.],}*’
 DEBUG [e8bc0c4c]   : No such file or directory
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: mv exit status: 1
mv stdout: mv: cannot stat ‘out/{.[!.],}*’: No such file or directory
mv stderr: Nothing written
/var/lib/jenkins/.rvm/gems/ruby-2.2.0/gems/sshkit-1.11.1/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute'
/var/lib/jenkins/.rvm/gems/ruby-2.2.0/gems/sshkit-1.11.1/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
SSHKit::Command::Failed: mv exit status: 1
mv stdout: mv: cannot stat ‘out/{.[!.],}*’: No such file or directory
mv stderr: Nothing written

I have manually tried "shopt -s dotglob" and it worked, not sure if you can implement that.

from capistrano-scm-jenkins.

jeffbyrnes avatar jeffbyrnes commented on May 25, 2024

@hernan82arg I know shopt will work manually, but am pretty sure it will not with Capistrano, since it’s a non-login, non-interactive shell we’re dealing with (note the command it’s running: /usr/bin/env mv, Cap SSHs in for every command).

However, might be able to handle things with a different tactic…

Also, added some code fencing around your copied output for readability. Triple backticks work wonders!

from capistrano-scm-jenkins.

jeffbyrnes avatar jeffbyrnes commented on May 25, 2024

@hernan82arg would you please try v0.5.3? I refactored things to use bash -c and try using shopt there (since it’s a Bash built-in). No idea if it’ll work.

from capistrano-scm-jenkins.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.