Jenkins commands lines reference from jenkins

rajeshkumar created the topic: Jenkins commands lines reference from jenkins
You can access various features in Jenkins through a command-line tool. See the Wiki for more details of this feature.To get started, download jenkins-cli.jar, and run it as follows:

java -jar jenkins-cli.jar -s XX.XX.XX.XX:8090/ help

Available Commands

add-job-to-view Adds jobs to view.
build Builds a job, and optionally waits until its completion.
cancel-quiet-down Cancel the effect of the “quiet-down” command.
clear-queue Clears the build queue.
connect-node Reconnect to a node.
console Retrieves console output of a build.
copy-job Copies a job.
create-job Creates a new job by reading stdin as a configuration XML file.
create-node Creates a new node by reading stdin as a XML configuration.
create-view Creates a new view by reading stdin as a XML configuration.
delete-builds Deletes build record(s).
delete-job Deletes a job.
delete-node Deletes a node.
delete-view Deletes view.
disable-job Disables a job.
disconnect-node Disconnects from a node.
enable-job Enables a job.
get-job Dumps the job definition XML to stdout.
get-node Dumps the node definition XML to stdout.
get-view Dumps the view definition XML to stdout.
groovy Executes the specified Groovy script.
groovysh Runs an interactive groovy shell.
help Lists all the available commands or a detailed description of single command.
install-plugin Installs a plugin either from a file, an URL, or from update center.
install-tool Performs automatic tool installation, and print its location to stdout. Can be only called from inside a build.
keep-build Mark the build to keep the build forever.
list-changes Dumps the changelog for the specified build(s).
list-jobs Lists all jobs in a specific view or item group.
list-plugins Outputs a list of installed plugins.
login Saves the current credential to allow future commands to run without explicit credential information.
logout Deletes the credential stored with the login command.
mail Reads stdin and sends that out as an e-mail.
offline-node Stop using a node for performing builds temporarily, until the next “online-node” command.
online-node Resume using a node for performing builds, to cancel out the earlier “offline-node” command.
quiet-down Quiet down Jenkins, in preparation for a restart. Don’t start any builds.
reload-configuration Discard all the loaded data in memory and reload everything from file system. Useful when you modified config files directly on disk.
reload-job Reloads this job from disk.
remove-job-from-view Removes jobs from view.
restart Restart Jenkins.
safe-restart Safely restart Jenkins.
safe-shutdown Puts Jenkins into the quiet mode, wait for existing builds to be completed, and then shut down Jenkins.
session-id Outputs the session ID, which changes every time Jenkins restarts.
set-build-description Sets the description of a build.
set-build-display-name Sets the displayName of a build.
set-build-parameter Update/set the build parameter of the current build in progress.
set-build-result Sets the result of the current build. Works only if invoked from within a build.
set-external-build-result Set external monitor job result.
shutdown Immediately shuts down Jenkins server.
update-job Updates the job definition XML from stdin. The opposite of the get-job command.
update-node Updates the node definition XML from stdin. The opposite of the get-node command.
update-view Updates the view definition XML from stdin. The opposite of the get-view command.
version Outputs the current version.
wait-node-offline Wait for a node to become offline.
wait-node-online Wait for a node to become online.
who-am-i Reports your credential and permissions.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Jenkins commands lines reference from jenkins
create-job: Creates a new job by reading stdin as a configuration XML file.
get-job: Dumps the job definition XML to stdout
So you can do

java -jar jenkins-cli.jar -s http://server get-job myjob > myjob.xml
java -jar jenkins-cli.jar -s http://server create-job newmyjob < myjob.xml Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Jenkins commands lines reference from jenkins
Today when i ran following commands from windows against a jenkins server which is installed in Linux….I got following error

D:\tools>java -jar jenkins-cli.jar -s http://10.00.00.00:8080 create-job newmyjob < config.xml [WARN] Failed to authenticate with your SSH keys. Proceeding as anonymous java.io.IOException: Unable to read /data/jenkins/jobs/newmyjob/config.xml at hudson.XmlFile.read(XmlFile.java:144) at hudson.model.Items.load(Items.java:278) at hudson.model.ItemGroupMixIn$4.call(ItemGroupMixIn.java:258) at hudson.model.ItemGroupMixIn$4.call(ItemGroupMixIn.java:256) at hudson.model.Items.whileUpdatingByXml(Items.java:90) at hudson.model.ItemGroupMixIn.createProjectFromXML(ItemGroupMixIn.java:256) at jenkins.model.Jenkins.createProjectFromXML(Jenkins.java:3055) at hudson.cli.CreateJobCommand.run(CreateJobCommand.java:73) at hudson.cli.CLICommand.main(CLICommand.java:237) at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:3 26) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:301) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:260) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63) at hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18) at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java: 46) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: com.tikal.jenkins.plugins.mu ltijob.MultiJobProject at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.jav a:88) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79 ) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:280) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:43) at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30) at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:48) at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams. java:29) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:133) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarsh allingStrategy.java:32) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189) at hudson.util.XStream2.unmarshal(XStream2.java:113) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1053) at hudson.XmlFile.read(XmlFile.java:142) at hudson.model.Items.load(Items.java:278) at jenkins.model.Jenkins$17.run(Jenkins.java:2673) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) at jenkins.model.Jenkins$7.runTask(Jenkins.java:903) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) ... 3 more Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Jenkins plugins manager No updates issues

rajeshkumar created the topic: jenkins plugins manager No updates issues
When you see no plugins available in “Available” tab under plugins manager, you need to do following…

1. Go to Manage-Plugins->Advanced-> and bottom of the page you find Checknow button. Click on it

2. Go to Manage-Plugins->Advanced->Update site and enter ” updates.jenkins-ci.org/update-center.json ” and submit it
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Jenkins Workspace Issue

pasupuleti2 created the topic: Jenkins Workspace Issue
Most of our jobs which are running on the Windows systems are failing due to issues in “deleting the workspace”. Our Jenkins working on Virtual machine. We have enough space to store Jenkins logs

ERROR::

{code}
[EnvInject] – Loading node environment variables.
Building on master in workspace D:\Jenkins\workspace\IntelliLink Develop – Bitbucket
> git.exe rev-parse –is-inside-work-tree # timeout=10
ERROR: Workspace has a .git repository, but it appears to be corrupt.
hudson.plugins.git.GitException: Command “git.exe rev-parse –is-inside-work-tree” returned status code 128:
stdout:
stderr: fatal: Not a git repository (or any of the parent directories): .git

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1383)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1379)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1093)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1103)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.hasGitRepo(CliGitAPIImpl.java:181)
at hudson.plugins.git.GitAPI.hasGitRepo(GitAPI.java:186)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:842)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
at hudson.model.Run.execute(Run.java:1740)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Cloning the remote Git repository
Cloning repository bitbucket.org/sw/ddev-intellilink.git
ERROR: Failed to clean the workspace
java.nio.file.AccessDeniedException: D:\Jenkins\workspace\IntelliLink Develop – Bitbucket\.git\objects\pack\pack-1b0af023ecbe069724e34732bf47d46ae3207ba0.idx
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)
at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source)
at java.nio.file.Files.delete(Unknown Source)
at sun.reflect.GeneratedMethodAccessor2431.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at hudson.Util.deleteFile(Util.java:247)
at hudson.Util.deleteRecursive(Util.java:310)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:379)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:857)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
at hudson.model.Run.execute(Run.java:1740)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
ERROR: Error cloning remote repo ‘origin’
hudson.plugins.git.GitException: Failed to delete workspace
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:382)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:857)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
at hudson.model.Run.execute(Run.java:1740)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: java.nio.file.AccessDeniedException: D:\Jenkins\workspace\IntelliLink Develop – Bitbucket\.git\objects\pack\pack-1b0af023ecbe069724e34732bf47d46ae3207ba0.idx
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)
at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source)
at java.nio.file.Files.delete(Unknown Source)
at sun.reflect.GeneratedMethodAccessor2431.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at hudson.Util.deleteFile(Util.java:247)
at hudson.Util.deleteRecursive(Util.java:310)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:379)
… 10 more
ERROR: null
Performing Post build task…
Could not match :Test Run : False
Logical operation result is FALSE
Skipping script : cd “%WORKSPACE%/Bin”
wzzip -p -r DotCoverResults.zip DotCover
cd “%WORKSPACE%”
wzzip TestResults.trx.zip “TestResults.trx”
END OF POST BUILD TASK : 0
[htmlpublisher] Archiving HTML reports…
[htmlpublisher] Archiving at BUILD level D:\Jenkins\workspace\IntelliLink Develop – Bitbucket\Bin\DotCover to D:\Jenkins\jobs\IntelliLink Develop – Bitbucket\builds\2015-08-12_11-03-04\htmlreports\DotCover_Results
Processing tests results in file(s) TestResults.trx
TestResults.trx
Recording fingerprints
Email was triggered for: Always
Sending email for trigger: Always
Request made to compress build log
Sending email to:
Finished: FAILURE
{code}

But we need permanent solution for this , could you please support us here?

rajeshkumar replied the topic: Jenkins Workspace Issue
Please try this plugins..
Name – Workspace Cleanup Plugin
wiki.jenkins-ci.org/display/JENKINS/Workspace+Cleanup+Plugin
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

java.io.IOException: Failed to rename jenkins

rajeshkumar created the topic: java.io.IOException: Failed to rename jenkins
Today while setting up the maven automatic install setup with jenkins, i found following issues….

Started by user anonymous
Building on master in workspace C:\Program Files (x86)\Jenkins\jobs\HelloworldMaven\workspace
> C:\Program Files (x86)\Git\bin\git.exe rev-parse –is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> C:\Program Files (x86)\Git\bin\git.exe config remote.origin.url github.com/scmgalaxy/helloworld-java-maven.git # timeout=10
Fetching upstream changes from github.com/scmgalaxy/helloworld-java-maven.git
> C:\Program Files (x86)\Git\bin\git.exe –version # timeout=10
> C:\Program Files (x86)\Git\bin\git.exe -c core.askpass=true fetch –tags –progress github.com/scmgalaxy/helloworld-java-maven.git +refs/heads/*:refs/remotes/origin/*
> C:\Program Files (x86)\Git\bin\git.exe rev-parse “refs/remotes/origin/master^{commit}” # timeout=10
> C:\Program Files (x86)\Git\bin\git.exe rev-parse “refs/remotes/origin/origin/master^{commit}” # timeout=10
Checking out Revision dba87c8e45ccfd53daee107baa70e80ddefeef58 (refs/remotes/origin/master)
> C:\Program Files (x86)\Git\bin\git.exe config core.sparsecheckout # timeout=10
> C:\Program Files (x86)\Git\bin\git.exe checkout -f dba87c8e45ccfd53daee107baa70e80ddefeef58
> C:\Program Files (x86)\Git\bin\git.exe rev-list dba87c8e45ccfd53daee107baa70e80ddefeef58 # timeout=10
Unpacking repo.maven.apache.org/maven2/org/apache/…-maven-3.3.1-bin.zip to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\maven on Jenkins
FATAL: Failed to rename C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\maven\apache-maven-3.3.1 to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\maven\apache-maven-3.3.1.__rename
java.io.IOException: Failed to rename C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\maven\apache-maven-3.3.1 to C:\Program Files (x86)\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\maven\apache-maven-3.3.1.__rename
at hudson.FilePath$40.invoke(FilePath.java:1964)
at hudson.FilePath$40.invoke(FilePath.java:1957)
at hudson.FilePath.act(FilePath.java:991)
at hudson.FilePath.act(FilePath.java:969)
at hudson.FilePath.moveAllChildrenTo(FilePath.java:1957)
at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:74)
at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206)
at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:624)
at hudson.tasks.Maven.perform(Maven.java:288)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.Build$BuildExecution.build(Build.java:205)
at hudson.model.Build$BuildExecution.doRun(Build.java:162)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)
Finished: FAILURE
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Jenkins job Processing

pasupuleti2 created the topic: Jenkins job Processing
When I start build in Jenkins, Job is running long time it is taking 1hour 50mins. This project source code is C#.net in bitbucket and our tools are MSBuild, Nunit. How to avoid this delay time?

Tagged :

Jenkins Job Process and Console Output issue

pasupuleti2 created the topic: Jenkins Job Process and Console Output issue
When I start build in Jenkins, Job is running but console output is showing as below message. And project is still running. This project source code is C#.net in bitbucket and our tools are MSBuild, Nunit.

A problem occurred while processing the request.
Please check our bug tracker to see if a similar problem has already been reported.
If it is already reported, please vote and put a comment on it to let us gauge the impact of the problem.
If you think this is a new issue, please file a new issue.
When you file an issue, make sure to add the entire stack trace, along with the version of Jenkins and relevant plugins.
The users list might be also useful in understanding what has happened.

Stack trace

javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:210)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631)
at org.kohsuke.stapler.Stapler.service(Stapler.java:225)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:202)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:180)
at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:85)
at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:89)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:86)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: PermGen space
at sun.misc.Unsafe.defineClass(Native Method)
at sun.reflect.ClassDefiner.defineClass(Unknown Source)
at sun.reflect.MethodAccessorGenerator$1.run(Unknown Source)
at sun.reflect.MethodAccessorGenerator$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.reflect.MethodAccessorGenerator.generate(Unknown Source)
at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(Unknown Source)
at sun.reflect.ReflectionFactory.newConstructorForSerialization(Unknown Source)
at java.io.ObjectStreamClass.getSerializableConstructor(Unknown Source)
at java.io.ObjectStreamClass.access$1500(Unknown Source)
at java.io.ObjectStreamClass$2.run(Unknown Source)
at java.io.ObjectStreamClass$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.(Unknown Source)
at java.io.ObjectStreamClass.lookup(Unknown Source)
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at hudson.console.AnnotatedLargeText.createAnnotator(AnnotatedLargeText.java:128)
at hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:167)
at hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:143)
at org.kohsuke.stapler.framework.io.LargeText.doProgressText(LargeText.java:262)
at hudson.console.AnnotatedLargeText.doProgressiveHtml(AnnotatedLargeText.java:91)
at sun.reflect.GeneratedMethodAccessor235.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)

Tagged :

Jenkins job is failing

pasupuleti2 created the topic: Jenkins job is failing
Hi Rajesh,

Would you please help me to resolve below two issues.

When I run my existing jenkins project I am facing couple of issues.

1) Poll SCM is not working in that project

I already Set below Schedule:
# every fifteen minutes (perhaps at :07, :22, :37, :52)
H/15 * * * *

2) second major issue is below

Started by user SandCInstaller
[EnvInject] – Loading node environment variables.
Building on master in workspace D:\Jenkins\workspace\IntelliLink Develop – Bitbucket
No emails were triggered.
[IntelliLink Develop – Bitbucket] $ sh -xe C:\Users\SANDCI~1\AppData\Local\Temp\hudson4676798978666759080.sh
+ python -m WinkitVersionUpdate -pwf ‘D:\Jenkins\workspace\IntelliLink Develop – Bitbucket/IntelliLINK6/Product.wxi’ -wavf ‘D:\Jenkins\workspace\IntelliLink Develop – Bitbucket/Common/Sources/WkAssemblyVersion.cs’ -llrf ‘D:\Jenkins\workspace\IntelliLink Develop – Bitbucket/LegacyLib/LegacyLib.rc’ -b 10229 -bo 11000 -bm 1 -ro -200 -gc
usage: WinkitVersionUpdate.py [-h] [-pwf PRODUCT_WXI_FILE]
[-wavf WK_ASSEMBLY_VERSION_FILE]
[-llrf LEGACY_LIB_RC_FILE] [-b BUILD_NUMBER]
[-bo BUILD_OFFSET] [-bm BUILD_MULTIPLIER]
[-ro REVISION_OFFSET] [-gc GIT_COMMIT]
WinkitVersionUpdate.py: error: argument -gc/–git_commit: expected one argument
Build step ‘Execute shell’ marked build as failure
Performing Post build task…
Could not match :Test Run : False
Logical operation result is FALSE
Skipping script : cd “%WORKSPACE%/Bin”
wzzip -p -r DotCoverResults.zip DotCover
cd “%WORKSPACE%”
wzzip TestResults.trx.zip “TestResults.trx”
END OF POST BUILD TASK : 0
[htmlpublisher] Archiving HTML reports…
[htmlpublisher] Archiving at BUILD level D:\Jenkins\workspace\IntelliLink Develop – Bitbucket\Bin\DotCover to D:\Jenkins\jobs\IntelliLink Develop – Bitbucket\builds\2015-10-13_22-44-47\htmlreports\DotCover_Results
Processing tests results in file(s) TestResults.trx
TestResults.trx
Recording fingerprints
Email was triggered for: Always
Sending email for trigger: Always
Request made to compress build log
Sending email to: saritha.konijeti@sandc.com
Finished: FAILURE

Tagged :

Jenkins is not recognizing deployment location.

pasupuleti2 created the topic: Jenkins is not recognizing deployment location.
Rajesh,

Could you please check below error and let me know the solution for error. If I don’t give below command I get this issue.

Command: IF NOT EXIST G:\. net use G: “\\ala-fs02.sandc.ws\general”

when ever I create new Jenkins job it works fine. but after 2 months, build creates below error. How can we resolve this issue and what is the exact problem?

BUILD SUCCESSFUL

Total time: 2 mins 42.08 secs
Build step ‘Invoke Gradle script’ changed build result to SUCCESS
[ArtifactDeployer] – Starting deployment from the post-action …
[ArtifactDeployer] – [ERROR] – Failed to deploy. Can’t create the directory ‘G:\Shared\Deployment\Mobile\APK Mobile\APK Mobile_44’
[ArtifactDeployer] – [ERROR] – Failed to mkdirs: G:\Shared\Deployment\Mobile\APK Mobile\APK Mobile_44
Build step ‘[ArtifactDeployer] – Deploy the artifacts from build workspace to remote locations’ changed build result to FAILURE
Build step ‘[ArtifactDeployer] – Deploy the artifacts from build workspace to remote locations’ marked build as failure
Email was triggered for: Always

rajeshkumar replied the topic: Jenkins is not recognizing deployment location.
[ArtifactDeployer] – [ERROR] – Failed to mkdirs: G:\Shared\Deployment\Mobile\APK Mobile\APK Mobile_44

As per the error – I guess Either you have permission issues to the location or disk space issues. its unable to create a directory to the path. try to create manually n see what happens.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Difference between Jenkins 1.577 and 1.634

pasupuleti2 created the topic: difference between Jenkins 1.577 and 1.634
What are the pros and cons in Jenkins 1.577 and 1.634 versions?

rajeshkumar replied the topic: difference between Jenkins 1.577 and 1.634
I would not say pros and cons. I would say that what is difference between these two release. Try to locate the release notes of these 2 jenkins version and refer it. Most probably, more bug fixes and few new features.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Jenkins job is failing

pasupuleti2 created the topic: Jenkins job is failing
Hi Rajesh,

Would you please help me to resolve below two issues.

When I run my existing jenkins project I am facing couple of issues.

1) Poll SCM is not working in that project

I already Set below Schedule:
# every fifteen minutes (perhaps at :07, :22, :37, :52)
H/15 * * * *

2) second major issue is below

Started by user SandCInstaller
[EnvInject] – Loading node environment variables.
Building on master in workspace D:\Jenkins\workspace\IntelliLink Develop – Bitbucket
No emails were triggered.
[IntelliLink Develop – Bitbucket] $ sh -xe C:\Users\SANDCI~1\AppData\Local\Temp\hudson4676798978666759080.sh
+ python -m WinkitVersionUpdate -pwf ‘D:\Jenkins\workspace\IntelliLink Develop – Bitbucket/IntelliLINK6/Product.wxi’ -wavf ‘D:\Jenkins\workspace\IntelliLink Develop – Bitbucket/Common/Sources/WkAssemblyVersion.cs’ -llrf ‘D:\Jenkins\workspace\IntelliLink Develop – Bitbucket/LegacyLib/LegacyLib.rc’ -b 10229 -bo 11000 -bm 1 -ro -200 -gc
usage: WinkitVersionUpdate.py [-h] [-pwf PRODUCT_WXI_FILE]
[-wavf WK_ASSEMBLY_VERSION_FILE]
[-llrf LEGACY_LIB_RC_FILE] [-b BUILD_NUMBER]
[-bo BUILD_OFFSET] [-bm BUILD_MULTIPLIER]
[-ro REVISION_OFFSET] [-gc GIT_COMMIT]
WinkitVersionUpdate.py: error: argument -gc/–git_commit: expected one argument
Build step ‘Execute shell’ marked build as failure
Performing Post build task…
Could not match :Test Run : False
Logical operation result is FALSE
Skipping script : cd “%WORKSPACE%/Bin”
wzzip -p -r DotCoverResults.zip DotCover
cd “%WORKSPACE%”
wzzip TestResults.trx.zip “TestResults.trx”
END OF POST BUILD TASK : 0
[htmlpublisher] Archiving HTML reports…
[htmlpublisher] Archiving at BUILD level D:\Jenkins\workspace\IntelliLink Develop – Bitbucket\Bin\DotCover to D:\Jenkins\jobs\IntelliLink Develop – Bitbucket\builds\2015-10-13_22-44-47\htmlreports\DotCover_Results
Processing tests results in file(s) TestResults.trx
TestResults.trx
Recording fingerprints
Email was triggered for: Always
Sending email for trigger: Always
Request made to compress build log
Sending email to: saritha.konijeti@sandc.com
Finished: FAILURE

rajeshkumar replied the topic: Jenkins job is failing
its your customized issues. very hard to answer. Hope you might have resolved by now.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :