Ant task not running from Jenkins
Hi All, I am trying to run ant task from jenkins on Windows 10 machine. But, I get following error message. The system cannot find the path specified. Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE But, when i rum the same task from command prompt it works fine. ANT_HOME, JAVA_HOME are all set and Ant is also configured in Jenkins under Global config section. I am fed up with this issue. Please help me out to resolve this. Thanks, Ganesha -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f6213a99-6a7a-4c8d-b193-f5d3dfd8d577%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
java.io.IOException: Cannot run program "chmod": java.io.IOException
Hi, I am running ant task to change permission of files form Jenkins tool. But, I am getting following exception. Can someone please help me to resolve this issue. Waiting to here form you guys. ant task: console output: Execute failed: java.io.IOException: Cannot run program "chmod": java.io.IOException: error=2, No such file or directory*16:26:24* at org.apache.tools.ant.taskdefs.Chmod.execute(Chmod.java:183)*16:26:24*at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)*16:26:24* at org.apache.tools.ant.Task.perform(Task.java:364)*16:26:24* at org.apache.tools.ant.Target.execute(Target.java:341)*16:26:24* at org.apache.tools.ant.Target.performTasks(Target.java:369)*16:26:24* at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)*16:26:24* at org.apache.tools.ant.Project.executeTarget(Project.java:1185)*16:26:24* at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)*16:26:24* at org.apache.tools.ant.Project.executeTargets(Project.java:1068)*16:26:24* at org.apache.tools.ant.Main.runBuild(Main.java:668)*16:26:24* at org.apache.tools.ant.Main.startAnt(Main.java:187)*16:26:24* at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)*16:26:24*at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) Thanks, Ganesha -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/24a9930d-3751-4b20-a026-25d5fc1a9a98%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Checkout code to remote machine
Hi All, I am new to Jenkins. I got a requirement to setup CICD using jenkins for my project. As per the requirement I have to setup jenkins in one system let's say A. We have CVS code repository. Here, we have to create Jenkins job which should checkout code to another machine lets sya B. what and all I need to do inorder to checkout code to remote machine. Please help me to implement this. Thanks in advance -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2e230521-f1c6-4163-afe4-57a5baf9ffbf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Jenkin+CVS : com.jcraft.jsch.JSchException: Auth cancel
Hi All, I am new to Jenkins. I have to checkout out code from CVS. So, I generated private/public key using *"ssh-keygen -t rsa*" command. it has generated id_rsa and id_rsa.pub files. pointed private key path to this id_rsa file. But when I run job I am getting following error message. Even I converted id_rsa file to id_rsa.ppk using puttygen. But, No use. *08:17:50* ERROR: CVS Authentication failed: null*08:17:50* org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed.*08:17:50* at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:141)*08:17:50* at org.netbeans.lib.cvsclient.Client$1.run(Client.java:374)*08:17:50* at java.lang.Thread.run(Thread.java:748)*08:17:50* Caused by: com.jcraft.jsch.JSchException: Auth cancel*08:17:50* at com.jcraft.jsch.Session.connect(Session.java:511)*08:17:50* at com.jcraft.jsch.Session.connect(Session.java:183)*08:17:50* at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:139)*08:17:50* ... 2 more*08:17:50* ERROR: Cvs task failed Jenkins version : 2.74 CVS plugin : 2.13 please help me to get it resolved. Thanks in advance, Ganesha -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f4e6ce8a-f0af-488e-9f63-028e2c50ced0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
CVS Authentication failed: null
Hi, I am configuring jenkins job to checkout code from CVS using cvs-plugin. But, It is looking for private key locations. I can generate private key on my computer. But, I don't have control on CVS server. So, I cant store public key in server. So, Please let me know how we can checkout code from CVS just by using user credentials. I mean is it possible to skip SSH authentication? log message: *17:14:58* Building in workspace C:\Users\AB54631\.jenkins\workspace\Test_Sonar_Jenkins*17:14:58* Using locally configured password for connection to :ext:ab54...@lxdenvmap290.qintra.com:/opt/scm/cvs/home/repository*17:14:59* cvs checkout -P -D 29 Aug 2017 17:14:58 +0530 -d qoaordering qoaordering *17:14:59* ERROR: CVS Authentication failed: null*17:14:59* org.netbeans.lib.cvsclient.connection.AuthenticationException: SSH connection failed.*17:14:59* at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:141)*17:14:59* at org.netbeans.lib.cvsclient.Client$1.run(Client.java:374)*17:14:59* at java.lang.Thread.run(Thread.java:745)*17:14:59* Caused by: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: C:\Users\AB54631\.ssh\id_rsa (The system cannot find the path specified)*17:14:59* at com.jcraft.jsch.KeyPair.load(KeyPair.java:524)*17:14:59* at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40)*17:14:59* at com.jcraft.jsch.JSch.addIdentity(JSch.java:389)*17:14:59*at com.jcraft.jsch.JSch.addIdentity(JSch.java:370)*17:14:59*at org.netbeans.lib.cvsclient.connection.SSHConnection.open(SSHConnection.java:135)*17:14:59* ... 2 more*17:14:59* Caused by: java.io.FileNotFoundException: C:\Users\AB54631\.ssh\id_rsa (The system cannot find the path specified)*17:14:59* at java.io.FileInputStream.open0(Native Method)*17:14:59* at java.io.FileInputStream.open(FileInputStream.java:195)*17:14:59* at java.io.FileInputStream.(FileInputStream.java:138)*17:14:59* at java.io.FileInputStream.(FileInputStream.java:93)*17:14:59*at com.jcraft.jsch.Util.fromFile(Util.java:492)*17:14:59* at com.jcraft.jsch.KeyPair.load(KeyPair.java:521)*17:14:59* ... 6 more*17:14:59* ERROR: Cvs task failed*17:14:59* Finished: FAILURE Thanks in advance, Ganesh -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c39a5d49-c3de-4e00-919c-d092c09d5804%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.