How to add users via command line with Hudson

2016-03-04 Thread Zk W
Hi All

We use Hudson v2.2.1.
How can we add multiple users via command line ?

Would this work ? We ask because we have a rather old Hudson.

echo 'hpsr=new hudson.security.HudsonPrivateSecurityRealm(false);
hpsr.createAccount("dummyuser", "dummypassword")' | java -jar slave.jar -s
http://localhost:8080 groovy =


Is there any other command line approach ?


Thank you

-- 
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/CA%2B7%2BkFD02-T3FYKgzcfSdAiRevhsZky-VGzTBoTWYDwehLZG4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to retrieve "Recent Changes" information of a build in a text file

2016-01-26 Thread Zk W
Hi All

In Jenkins/Hudson for each build, there's a link to Recent Changes which
shows the changes that are checked into a source control system.

We use SVN.

How do we retrieve that information into a text file when the build run
completes ?

Thank you

-- 
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/CA%2B7%2BkFDcUndRCvktA3zCuW9SFYYfEY1zcChHcRiMy_pyq%3DEz6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


add multiple users at once possible ?

2015-08-12 Thread Zk W
Hi All

Is there a way to add multiple users in bulk at once in Hudson and Jenkins,
as opposed to clicking the "Add User" button for each user ?

Thank you.

-- 
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/CA%2B7%2BkFDKwO4TUsqkBtOZWgmdoUTcBhEoA51QYd6yMySNqpg7CQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


LDAP with Editable Email Notification plugin ?

2015-07-28 Thread Zk W
Hi All

We just migrated our subversion to use ldap for its authentication with
users.
We have the Editable Email Notification plugin and now it's broken because
of this change.
Before the migration, it was working with an smtp server.

Is there a way to recover this email plugin service and using it with LDAP ?

thank you.

-- 
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/CA%2B7%2BkFD3b_M1-eoY%2B2OqyZMu4_Pdffhd%2BUpChODRRrhHaq701Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to know from the local job that a remote job from another Jenkins instance kicks it off ?

2015-07-22 Thread Zk W
Hi All

We have 1 hudson instance named A with job name local
We have 1 jenkins instance named B with job name remote.

We set up local job such that remote job can kick off the local job.
Is there a parameter in local job that we can check that the local job of
instance A was kicked off by remote job of instance B ?

Thank you.

-- 
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/CA%2B7%2BkFC9n9YPoJYZggUu2ZQcQmdQPwq9E66gt7W5iLKC2UGEng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Git plugin on Jenkins fails to check out with fetching errors

2015-07-08 Thread Zk W
Hi All

Jenkins 1.519
Git client plugin 1.17.1
Git plugin 2.2.12
Credentials Plugin
 1.22
mailer 1.5
scm-api 0.2
ssh-credential 1.11
matrix-project
 - not
installed

We configured the job to use a linux build slave where this slave's ssh key
is setup and known to the Git Server abc.com

setup:
Repo URL: g...@ss.abc.com/dev/test.git

When trying to build with the job, we got the following errors:

[EnvInject] - Loading node environment variables.
Building remotely on slave_linux in workspace
/home/zx/jenkins/slave/workspace/zx-test
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url g...@ss.abc.com/dev/test.git # timeout=10
Fetching upstream changes from g...@ss.abc.com/dev/test.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress
g...@ss.abc.com/dev/test.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
ERROR: Error fetching remote repo 'origin'
Notifying upstream projects of job completion
Finished: FAILURE


Polling log shows:
Using strategy: Default
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repositories
 > git config remote.origin.url g...@ss.abc.com/dev/test.git # timeout=10
Fetching upstream changes from g...@ss.abc.com/dev/test.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress
g...@ss.abc.com/dev/test.git +refs/heads/*:refs/remotes/origin/*
FATAL: Failed to fetch from g...@ss.abc.com/dev/test.git
hudson.util.IOException2: Failed to fetch from g...@ss.abc.com/dev/test.git
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:496)
at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
at hudson.scm.SCM.poll(SCM.java:373)
at hudson.model.AbstractProject.pollWithWorkspace(AbstractProject.java:1542)
at hudson.model.AbstractProject._poll(AbstractProject.java:1514)
at hudson.model.AbstractProject.poll(AbstractProject.java:1448)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468)
at
hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
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: hudson.plugins.git.GitException: Failed to fetch from
g...@ss.abc.com/dev/test.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:668)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:575)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:494)
... 13 more
Caused by: hudson.plugins.git.GitException: Command "git -c
core.askpass=true fetch --tags --progress g...@ss.abc.com/dev/test.git
+refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: fatal: 'g...@ss.abc.com/dev/test.git' does not appear to be a git
repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591)
at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1379)
at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86)
at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:324)
at
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:152)
at
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:145)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Done. Took 0.3 sec
No changes


How do we overcome these errors so have a simple Git clone/fetch/co for our
work ?

Any help is appreciated.
Thank you.

-- 
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 discussi

Jenkins can't start up after git client plugin install

2015-07-08 Thread Zk W
Hi All

We tried starting up Jenkins but we get the following error:


org.jvnet.hudson.reactor.ReactorException:
java.lang.NoClassDefFoundError:
hudson/plugins/git/GitLockFailedException
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:43)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:904)
at jenkins.model.Jenkins.(Jenkins.java:804)
at hudson.model.Hudson.(Hudson.java:81)
at hudson.model.Hudson.(Hudson.java:77)
at hudson.WebAppMain$2.run(WebAppMain.java:214)
Caused by: java.lang.NoClassDefFoundError:
hudson/plugins/git/GitLockFailedException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at org.jvnet.hudson.annotation_indexer.Index$2$1.fetch(Index.java:101)
at org.jvnet.hudson.annotation_indexer.Index$2$1.hasNext(Index.java:71)
at 
org.jvnet.hudson.annotation_indexer.FilterIterator.fetch(FilterIterator.java:23)
at 
org.jvnet.hudson.annotation_indexer.FilterIterator.hasNext(FilterIterator.java:42)
at 
hudson.init.InitializerFinder.discoverTasks(InitializerFinder.java:70)
at hudson.PluginManager$2$1$3.run(PluginManager.java:367)
at 
org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:893)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException:
hudson.plugins.git.GitLockFailedException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 17 more



How do we recover this ?

We don't want to lose all our previous settings in our config.xml and
job configurations.

We've used this for a while now.


Any help is appreciated.


Thank you

-- 
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/CA%2B7%2BkFCfffMBj4n6kMz7z2Lq5qa0eQ5m5w7gAef89D0e7gJ%3DCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.