I pulled a request to a repository,but encountered a problem
"continuous-integration/travis-ci/pr — > The Travis CI build failed"
after pulled the request. I have clicked Detail and read it, but I'm unable to locate the issue and don't know how to resolve it.
Please give me suggestions.
This looks like an automated build which is triggered when you create a pull request. Normally Travis will try and build your solution or run some form of testing against your changes.
My guess is that these automated builds or tests that are run through Travis have failed due to something you have changed.
You will need to go into Travis (A CI tool) and look at the build logs of that particular pull request and from there you will be able to see what has been failing.
Sorry that I couldn't be of more help but that is a very standard error message and further detail is needed :)
Related
I am using Intelliji Idea. When I try to push my project to github repository I getting this message for 2 times:
And then I get this message:
What I need to do to push my project?
Such issues usually occur when there is no SSH-key configured, or IDE could not find it. AS a test, check push from command line to make sure SSH access is configured correctly. Make sure you have the ssh key and it is added to GitHub. See https://help.github.com/articles/connecting-to-github-with-ssh/
The error is rather generic, unfortunately. There are request to show more details and improve error reporting - see https://youtrack.jetbrains.com/issue/IDEA-72176 and https://youtrack.jetbrains.com/issue/IDEA-168179
At the moment, when some git operation fails, you could always check a more detailed output of the git command using the Console tab of the Version Control toolwindow.
I have a Java package which is checked in Git (and code.amazon.com) and I have a Ant job to trigger the package. Within the Ant job, I have created a macrodef for Git and I am performing a git fetch and git reset so that I can get the latest codebase every time I am triggering the Ant job.
When I am triggering the Ant job using Eclipse, it is working. If I am running the Ant job from terminal using ANT –buildfile my_buildfile.xml, it is also working.
Now I have setup Jenkins on my machine and am trying to run the Ant file. Jenkins is not able to trigger the Git job in the Ant file. It is giving following error:
/rhel5pdi/workplace/bangshis/EpubYJConvPerfWorkspace/src/EpubYJConvPerfLinux/Jenkins_Linux_build_Global.xml:81: The following error occurred while executing this line:
/rhel5pdi/workplace/bangshis/EpubYJConvPerfWorkspace/src/EpubYJConvPerfLinux/Jenkins_Linux_build_Global.xml:99: Execute failed: java.io.IOException: Cannot run program "git": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
at java.lang.Runtime.exec(Runtime.java:617)
at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:628)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
Part of this error might be due to the reason that, my Jenkins is not able to trigger the job as the current user of the host machine.
To solve this problem, I have tried taking the following steps:
Creating a global credential and using password-less account (RSA ID).
Logging into Jenkins using the same username as system.
Installing Git and Git client plugins and setting them up appropriately.
Kindly let me know if I am missing something, and if there is any way out. If my approach is not correct, I would be glad if you can share few other ideas.
I think it's related to the git configuration on your master (or node)
This solution should work to fix your problem:
Jenkins giving error while cloning from gitHub
#Dr.Bokko is correct...and I should thank him for guiding in the right direction. I am trying to give the complete answer. There are three factors based upon which we can do the setup of GIT with JENKINS.
1st Factor: To access GIT repository, if it is a public repository, then user credentials would not be required. But for access restricted GIT repositories, we need to make sure that proper credentials are passed. Git and Git Client plugins need to be installed for Jenkins to understand GIT operations.
2nd Factor: Before running the script, add a build step and export all the libraries needed as a part of the shell script.
3rd Factor: Finally check the System Configuration in Manage Jenkins section and check the environment variables which are considered by Jenkins. If they are not appropriate, then go to the nodes management link, and all the environment variables as KEY-VALUE pairs.
Hopefully, these steps mentioned above would solve the problem.
The following error appears in your stacktrace:
Cannot run program "git": error=2, No such file or directory
What that means is that the git executable is either not installed or not in the command path of the process running ANT.
It's not entirely clear why you're calling GIT from ANT. Normally Jenkins would perform the checkout of the code first (using GIT) and then call ANT. I would highly recommend investigating this alternative workflow, which might require the installation of a GIT plugin for Jenkins (can't remember if this is a default plugin or not).
I am trying to set up a Jenkins Server to build my IntelliJ-project (using BitBucketfor VCS (git)).
I have been able to set up IntelliJ to build correctly locally, and I am pushing it to bitbucket. I have also managed to set up Jenkins to get the code from BitBucket.
The problems to actually doing the build process itself, my problem being that I can't seem to figure out how to set it up with Ant / Maven, which I have never used before.
Any good suggestions?
PS: I am still searching for tutorials or anything that gives some help towards achieving this, and will be updating if I find something that helps.
Jenkins can fetch the code from the repository to its workspace, but it cannot build it for you. You need to give him the tool to do that. Popular choices are Maven/Ant/Gradle to handle project building for you.
You need to refer to the proper documentation for either Maven or Ant. The process is too broad and project-specific for me to go into details here, but Jenkins provides nice integration for both. If you know neither of them, I think I'd suggest Maven, but it's up to personal preferences and project needs.
You should first try to build project locally. Once you acomplish that, doing that with Jenkins shouldn't be a problem.
I am trying to compile a plugin for Bukkit and I cant seem to get it to work. I have copied some code from github "GitHub Code" and have imported it into eclipse as a maven project. When I try and do run-as 'Maven Build' it displays lot of text but finally gives me these errors.
Failed to execute goal on project BlockHunt: Could not resolve dependencies for project nl.Steffion:BlockHunt:jar:0.2.1-
b${env.BUILD_NUMBER}: Failed to collect dependencies at org.bukkit:bukkit:jar:1.7.9-R0.2-SNAPSHOT:
Failed to read artifact descriptor for org.bukkit:bukkit:jar:1.7.9-R0.2-SNAPSHOT: Could not transfer artifact org.bukkit:bukkit:pom:1.7.9-
R0.2-SNAPSHOT from/to bukkit-maven (http://repo.bukkit.org/content/repositories/releases/): Access denied
to http://repo.bukkit.org/content/repositories/releases/org/bukkit/bukkit/1.7.9-R0.2-SNAPSHOT/bukkit-1.7.9-R0.2-SNAPSHOT.pom.
I read in another post that I can put "dependency:copy-dependencies" in my run configurations for maven and its supposed try and download the stuff i need but it says access denied. I have never used maven or github so this is all new to me but it seems it should be really simple. All I really want to do is download the the code and create a jar file with it so I can use it. If anyone can point me in the right direction to making a jar from the code that would be great.
The plugin developer was getting the JavaDocs from the bukkit website, instead of downloading the jar and accessing it locally.
You may want to take a look at this, it may not specifically solve this problem, but it could help you get the code off of Github and into Eclipse correctly. – Jojodmo yesterday
His example showed you how to link to it locally.
Sometimes bukkit make some of their builds 'private', they do this to stop people downloading builds that did not pass the testing phase.
Remember that the link they are using is 1.7.9. At this time 1.8.1 is out so you might want to use the latest version.
i've installed maven in my PC. and i've followed the instruction on this web http://books.sonatype.com/mvnref-book/reference/installation.html , but when i would try to run it in command line (as written), i've got BUILD FAILURE error just like this picture below.
How can i solve this problem? Thanks for any response
Btw, my other question, is there any documentation of configurating java application into guvnor? i'm so grateful if anyone knows about this. :)
You should specify a goal for the build. Check this for more info http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
You did not specify a goal for maven to run, so it does not know what to do with the project.
Maven relies on a certain lifecycle, ie an order of so called goals to accomplish its tasks, for example "clean" to empty the current target folder, "install" to compile, test, package and copy the jars into your local respository. To get into the details, read up this documentation.
Since the error message does not differ, another error might be that you entered the command in a folder where no valid pom file is located. If you entered a complete maven command with goals, this would be the next bet.