When I run my code from git repo,using jenkins tool,actual code is not getting executed but only remote repository is getting cloned into my system.
Is it the expected behaviour,if it is please help me how can I execute the actual code?
According to my knowledge code should be executed,why its not happening,please help me in this regard.
Related
I'm trying to deploy a simple video chat as part of our website customer support. The sample code has been a big help and so far I have successfully built and deployed both of these:
twilio/twilio-video-app-react
twilio/twilio-video-diagnostics-react-app
The instructions for both of those were clear and I had no problem deploying them to the serverless service.
However, the react app has more features than we need, so I was hoping to try a smaller, simpler sample web application from here:
philnash/signal-twilio-video-webrtc-go-demo
My problem/question is that when I follow those instructions and get to:
npm run deploy
all I get is an error message:
signal-twilio-videe-webrtc-go#0.0.0 predeploy
build
sh: build: command not found
Can anyone explain what that means and how I can get past that error?
Twilio developer evangelist and creator of that demo here.
Apologies for getting the predeploy script wrong, I thought I knew what I was doing.
I have now updated the predeploy script to npm run build as you suggested in your comment.
As for why this was a problem, I believe that I was under the misconception that one npm script could refer to another without the npm run prefix. However, it cannot. So, to run one npm script from another, as in this predeploy script, I needed to refer to the script as npm run build. I am referring to another script like this because the predeploy script is automatically run by npm before the deploy script (you can do this with any script you create, and you can run scripts after using the post prefix too).
I have updated the repo with this, as well as some dependency updates, so hopefully this doesn't cause further problems.
I am running a ANT job. Build.xml is working fine in local command prompt but the same job is not working in Jenkins and getting below exception.
Error: Could not find or load main class com.ibm.broker.config.util.PackageBarGenRtObjWrapper
Please someone can help me out. Let me know if you need further details.
I develop in Rails, keep my code in Github, use CircleCI for testing, and now I've been trying to introduce Coveralls in the picture.
I've set these settings in Coveralls:
I added the coveralls gem:
And I set up spec_helper.rb as instructed in Coveralls' documentation:
What is working:
CircleCi sends coverage information to Coveralls, and I can see the coverage reports.
What is not working: Coveralls doesn't send the pull request status so I can't see in Github whether a PR meets the coverage expectations as shown here in one of their ads:
If anyone went through the Coveralls-CircleCI setup, I would really appreciate some pointers on this.
I faced the same issue and in my case the problem was that I invoked coveralls from a place where the git command did not work.
So I simply moved the .coverage file to the top of the repo prior to invoking coveralls and it fixed the problem.
I just cannot hook up the automatic update of coveralls.io to my Travis-CI build. All works fine if I execute the scripts on my machines. Here is the last message from the build log:
Submitting coverage to coveralls.io...
Coverage submitted!
Couldn't find a repository matching this job.
'url'
The command "python travis-ci/run.py" exited with 0.
Any hints or suggestions would be highly appreciated.
Best, Philipp
Make sure the TRAVIS, TRAVIS_JOB_ID and TRAVIS_BRANCH environment variables are defined when calling coveralls.
If you're using Tox for example, an extra step is needed as described in the coveralls-python readme.
This question is older, but the current problems show the same error. (And Google finds this too :-))
There were issues opened about it in node-coveralls and coveralls-public (and one more) repositories. It appeared, that Coveralls got accidentally blocked by Travis.
Although the problem was supposed to be fixed, as the comments on the second issue suggest, it occurred again. I myself could upload a new report neither from my machine, nor from Travis. I switched from Coveralls to Codecov.
I'm trying to clone my git repository using Jgit and I get this exception:
`java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException
at org.eclipse.jgit.transport.Transport.<clinit>(Transport.java:112)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:118)
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
`
I downloaded and copied Jsch in /lib and restarted my application (since Jgit has dependencies on this jar), I still get the same error. I'm running a java application build using ant from command line. Any other details please let me know.