Re: How to configure the plugin authorize-project with configuration-as-code?

2020-04-23 Thread Phil Ruggera
Here"s what I use: security: queueItemAuthenticator: authenticators: - global: strategy: "triggeringUsersAuthorizationStrategy" On Monday, January 21, 2019 at 4:06:28 AM UTC-8, Guo Zhenyang wrote: > > Hello, > I'm trying to use configuration-as-code to initial the configuration

Re: Error using gerrit-rest-java-client

2020-04-23 Thread Mark Waite
Wouldn't it be much safer to run a separate program to use that library? By loading the library into the Jenkins master process you are placing the Jenkins master at risk so that you can perform REST API calls to Gerrit. It is likely also much more difficult to test the REST API calls since you mu

Pipeline Pre-validation stage

2020-04-23 Thread Honey Bajaj
Hi All, I am using latest Jenkins, Github enterprise with multiple repositories. Using Github org plugin to scan all relevant repositories hosting Jenkinsfile to trigger pipeline tasks. I have a stringent security requirement for few of our repositories, where I need to a pre-validate state of

How to get graphical staging view of a particular build instance?

2020-04-23 Thread David Karr
In the classic view, when viewing a job with the list of recent builds on the left, the center area shows the "Stage View" that shows how long each stage of the most recent builds are taking. I often want to see this data for builds that are not currently showing in the staging view. I could m

Re: Multibranch Pipeline: Checkout fatal bad object

2020-04-23 Thread Mark Waite
On Thu, Apr 23, 2020 at 8:37 AM Cardamon wrote: > Hi > have you eventually figured it out? > experiencing the same behavior > Tnx > Command line git generates that message when a sparse checkout is selected. The Jenkins git plugin ignores the message and continues. If you'd rather not have tha

Re: Multibranch Pipeline: Checkout fatal bad object

2020-04-23 Thread Cardamon
Hi have you eventually figured it out? experiencing the same behavior Tnx > The first build of any Branch or Tag the checkout step outputs one line > with fatal bad object, for a different git commit hash than the one checked > out. > > Anyone know what the reason for this is? > > > git fe

Re: See pipeline properties in dashboard

2020-04-23 Thread jeremy mordkoff
I did stumble on the setting showing up in the UI when I 'view configuration' for the job. But I would prefer to see it in a column if possible. On Thursday, April 23, 2020 at 10:17:26 AM UTC-4, jeremy mordkoff wrote: > > If I use this syntax > > properties([ > pipelineTriggers([cron('0 2

Re: Jenkins master migration from Windows to Linux

2020-04-23 Thread D'raj
What I am unaware of is, how my windows host behaves when I disconnect it from one jenkins server to another? Specifically with Linux host, do I need to take any extra care? Where do I keep jenkins slave .jar file in linux? On Thursday, 23 April 2020 17:41:02 UTC+5:30, slide wrote: > > For JNLP,

Re: Jenkins master migration from Windows to Linux

2020-04-23 Thread D'raj
Connected via JNLP agent On Thursday, 23 April 2020 14:28:42 UTC+5:30, Dirk Heinrichs wrote: > > Am Mittwoch, den 22.04.2020, 23:52 -0700 schrieb D'raj: > > How do I configure old build hosts to talk to new linux Jenkins instance? > > > That largely depends on how they have been connected. Are the

See pipeline properties in dashboard

2020-04-23 Thread jeremy mordkoff
If I use this syntax properties([ pipelineTriggers([cron('0 21 * * *')]) ]) Then the cron spec shows up under "periodic build trigger' in my list views. But it does not show up if I use this syntax properties([ pipelineTriggers([ [$class: "SCMTrigger", scmpoll_spec: 'H 22 * *

Re: Jenkins master migration from Windows to Linux

2020-04-23 Thread 'Dirk Heinrichs' via Jenkins Users
Am Donnerstag, den 23.04.2020, 05:10 -0700 schrieb Slide: For JNLP, the connection is done from the agent. It launches the agent.jar which connects to the master. But one needs to actively issue an "Add node" from the master to create it. That's also true for SSH slaves, but not for Swarm slave

Re: Jenkins master migration from Windows to Linux

2020-04-23 Thread Slide
For JNLP, the connection is done from the agent. It launches the agent.jar which connects to the master. If the agents are using "JNLP" then the launch command for that agent would possibly need to be updated if your master is at a different hostname/ip address than the old master. On Thu, Apr 23,

Re: Jenkins master migration from Windows to Linux

2020-04-23 Thread 'Dirk Heinrichs' via Jenkins Users
Am Mittwoch, den 22.04.2020, 23:52 -0700 schrieb D'raj: How do I configure old build hosts to talk to new linux Jenkins instance? That largely depends on how they have been connected. Are they connected via SSH Slave plugin, Swarm Slave plugin or via JNLP? If SSH or JNLP, the connection is init

Jenkins master migration from Windows to Linux

2020-04-23 Thread D'raj
Hello All, I recently migration Jenkins master from Windows to Linux(Centos). The migration is successful. I installed Jenkins on Linux and copied all the directories from Windows to Linux. LDAP is set. i can login and see the jobs. The problem is I cannot execute and test jobs as the build host