Comments (5)
Worked brother! thanks
from capistrano-scm-jenkins.
@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.
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.
@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.
@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)
- Does not support SSL HOT 2
- support filter the SCM log with prefix filter
- support capistrano 3 HOT 1
- Breaks with `sync' is not implemented by Capistrano::Deploy::SCM::Jenkins (NotImplementedError) on Capistrano 2.9.0 HOT 3
- Plugin locked to capistrano 3.2.1 HOT 1
- remove --fail in the update def HOT 2
- change repository address HOT 4
- Set SCM id Deprecated on Capistrano
- undefined method path for #<StringIO> HOT 1
- cap deploy:pending crashed with a strange title
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capistrano-scm-jenkins.