Re: All plugins failed to load

2023-12-11 Thread 'Daniel Beck' via Jenkins Users
On Mon, Dec 11, 2023 at 1:13 PM Matew  wrote:

> Hi All! Good day!
> After i have updated my Jenkins version to 2.81, all my plugins failed to
> load as image shown, anyone can help on this?
>

You have _downgraded_ Jenkins to 2.81. Version numbers aren't decimals.
2.81 is more than six years old and not newer than 2.435, the latest
release.

-- 
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/CAMo7PtK3fHD%2B%2BqKFExECbZ_xcsDrxDbjNdvPL2amOQoATtHFpg%40mail.gmail.com.


Re: 500: Response header too large

2023-10-23 Thread 'Daniel Beck' via Jenkins Users
On Fri, Oct 20, 2023 at 8:38 PM alan.l...@gmail.com 
wrote:

> Sorry to bump, but any ideas?  I get the stacktrace hitting the logout
> link and a white page, but it never actually logs out.  A back button press
> puts me back logged into Jenkins.
>

The logout attempts to clear cookies as they can accumulate after many
restarts/updates, each time with a different ID. I guess it's possible that
your requests (with a huge Cookie header) are fine, but the response,
trying to clear them all out, is not.
Diagnose by checking what your Cookie request header is, I expect you send
dozens of session cookies.
Try login/logout from a private browsing window, if that works it's an
indicator your cookies are a problem.
If so, temporarily resolve this issue by clearing browsing data in your
browser (and use the logout more often).

-- 
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/CAMo7PtLBMd1rpMT-jZOkf5xpcpcYeEZ%3DrP30pEXoXDVQOxB1Lg%40mail.gmail.com.


Re: fresh Jenkins installation does not present the dashboard

2023-07-28 Thread 'Daniel Beck' via Jenkins Users
On Fri, Jul 28, 2023 at 11:21 AM Matthias Apitz  wrote:

>
> * TLSv1.3 (OUT), TLS handshake, Client hello (1):
>
> it hangs. Sould it says '404 bla not found"
>

This indicates that something other than Jenkins is broken, so it's a
system/environment issue. Fix that first, then try again with Jenkins.

-- 
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/CAMo7Pt%2Bx9SKZcEifv4JPOJBNBd1WydQYcaMGcrXfBiNGwKWi%2Bg%40mail.gmail.com.


Re: fresh Jenkins installation does not present the dashboard

2023-07-28 Thread 'Daniel Beck' via Jenkins Users
On Fri, Jul 28, 2023 at 10:30 AM Matthias Apitz  wrote:

>
> [2023-07-28 09:50:31][SEVERE][hudson.model.UpdateCenter$DownloadJob run]
> Failed to install scm-api
> java.io.IOException: Failed to dynamically deploy this plugin
> at
> hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2204)
> at
> hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1850)
> ...
>

Might have a number of causes, not all of them network-related.


> When I watch such a plugin update with tcpdump for all traffic to/from
> port 443 such fetch is very slow and lazy. I looked in the file for
> the update: the JSON file in https://updates.jenkins.io/update-center.json
> it has 3413 URLs for downloading and I understand now why this took
> always so long in the first initialization of Jenkins.
>

None of them are actually downloaded. The JSON file is basically all that's
being downloaded.


> Our IT department will say: 443 outbound is all open
>

Can you curl from the Jenkins controller system to e.g. google.com?

Any exceptions getting logged?

-- 
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/CAMo7PtJm9LSuzksOQBfae-HW6YT1Y%3DuiDSRnFLgvchMnyruqug%40mail.gmail.com.


Re: fresh Jenkins installation does not present the dashboard

2023-07-27 Thread 'Daniel Beck' via Jenkins Users
On Thu, Jul 27, 2023 at 10:15 AM Matthias Apitz  wrote:

> I don't get why I'm not able to get all logs into the configured file
> /var/log/jenkins/jenkins.log; my used log configuration is:
>
> cat logging.properties
> .level=DEBUG
>

DEBUG isn't a legal level. There should be a corresponding error logged.

-- 
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/CAMo7Pt%2BRuoSM54jBDVXzsSfZ18tRTm-3nJJx17ewAuZn_s4UHg%40mail.gmail.com.


Re: fresh Jenkins installation does not present the dashboard

2023-07-26 Thread 'Daniel Beck' via Jenkins Users
On Wed, Jul 26, 2023 at 11:21 AM Matthias Apitz  wrote:

> The jenkins server itself is requesting data from two servers in
> Internet:
>
> …
>
> The first I have no idea, where is this configured.
>

That's google.com, something set up long ago as an attempt to determine
whether there's any internet connectivity. See
https://github.com/jenkinsci/jenkins/blob/7fb5f24efd92eda2461e9bf2f1fdc50295e12573/core/src/main/java/hudson/model/UpdateCenter.java#L1414
or
https://github.com/jenkinsci/jenkins/blob/7fb5f24efd92eda2461e9bf2f1fdc50295e12573/core/src/main/java/hudson/model/UpdateSite.java#L437
(the amount of unused/legacy code in this area makes it difficult to tell
at a glance which is called) or an equivalent field in the JSON data
retrieved from updates.jenkins.io.


> The box is sitting in some data center and is not fully connected to
> Internet... How could those external request to Internet be switched off?
>

This looks like a bug. The setup wizard should identify that the requests
fail, and offer to configure a proxy, or let you skip plugin installation.
Do some of the requests pass? If so, it might be different from a basic "no
networking" situation in ways not anticipated.

That said, the setup wizard has fairly little value if Jenkins is offline.
You can bypass

it, but note that it'll start with authorization + authentication set so
that anonymous users are admins; so you'll want to customize things quickly
on startup, e.g. with an init.groovy

script, ideally before exposing the HTTP port to anyone other than
localhost.

-- 
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/CAMo7Pt%2BOftB1em-yS97Ngu7%3D9ak5dpiGr2jmabVmGphXx2ovAw%40mail.gmail.com.


Re: There are no nodes with the label ‘built-in'

2023-05-30 Thread 'Daniel Beck' via Jenkins Users
On Tue, May 30, 2023 at 1:22 PM Torsten Reinhard  wrote:

> The node´s URL is already URL /manage/computer/(built-in)/ - but it´s
> still showing up as "master".
>

Might be a localization issue. Jenkins translations are often behind, and
it looks like we didn't delete those translations when updating
terminology. Switch your browser to prefer English responses and see
what happens (assuming Locale Plugin doesn't override browser preference).

For comparison, see https://ci.jenkins.io/computer/ -- that shows 'Built-in
Node' when preferring English.

-- 
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/CAMo7PtKW1uxB5mTQ9YqPh_4cdK3pc8fYcdX122aTiVwCj%3DX%2Bzg%40mail.gmail.com.


Re: There are no nodes with the label ‘built-in'

2023-05-30 Thread 'Daniel Beck' via Jenkins Users
On Tue, May 30, 2023 at 11:04 AM Torsten Reinhard 
wrote:

> I´m wondering why I´m still seeing
> "master" in the list of all nodes at https://
> ./jenkins/manage/computer/
>

Weird. Is that node's URL /manage/computer/(master)/ (i.e, with the
parentheses)? If not, that's an agent with the name 'master'. Check whether
a node exists that is called "Built-In Node". It may have 0 executors,
which would explain why no builds are starting.


> What step needs to be performed, so everything is properly switched to
> "built-in" instead of "master"?
>

Migration needs to be triggered manually, an admin message will be shown on
/manage for this. Did you follow the steps at
https://www.jenkins.io/doc/upgrade-guide/2.319/#migration ?

-- 
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/CAMo7PtJMKJwO5hytAwoK7U%2BhvoSPj_C4WS9VuSAANK1h3xkT3Q%40mail.gmail.com.


Re: HTML pages as archived artifacts

2023-01-16 Thread 'Daniel Beck' via Jenkins Users
On Mon, Jan 16, 2023 at 10:00 AM geoffroy...@gmail.com <
geoffroy.jabou...@gmail.com> wrote:

> you need to relax CSP rules for proper display, as mentioned by Xavier.
>

The recommended alternative for more than three years is to configure the
resource root URL as explained on
https://www.jenkins.io/doc/book/security/user-content/#resource-root-url

-- 
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/CAMo7Pt%2BZF1E4%2BJqEewS8DDB5VpOyt7dDQeUbUVrd%2BE2wh%3DMDEQ%40mail.gmail.com.


Re: Another way to uninstall a plugin?

2023-01-03 Thread 'Daniel Beck' via Jenkins Users
On Tue, Jan 3, 2023 at 4:49 PM zil...@gmail.com  wrote:

> Thanks. It's a deprecated plugin. I'm trying to uninstall all the
> indicated deprecated plugins, but they just keep coming back after a
> restart. They are disabled though.
>

Is it WMI Windows Agents Plugin?

Plugins getting re-installed is expected behavior if they're a plugin whose
functionality was split ("detached") from Jenkins core in the past, as is
the case with that one. It's the only such plugin currently deprecated as
well.

The only real solution is for all other plugins you have installed to
declare a core dependency of 1.547 or newer, so none of them cause the
detached plugin to be installed automatically again. Check the popup that
appears when hovering the "uninstall" button for candidates, or check the
URL /pluginManager/api/json?tree=plugins[shortName,requiredCoreVersion] in
Jenkins to learn which installed plugins have a ~9 year old core dependency
and should be modernized.

-- 
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/CAMo7PtJ2qsD8vevpnmWTPmjr6xBuSvhObYYGeqCz83KmA%2BHfRA%40mail.gmail.com.


Re: Copy To Slave plugin error

2022-12-05 Thread 'Daniel Beck' via Jenkins Users
On Mon, Dec 5, 2022 at 1:55 PM ekambaram varathan 
wrote:

> I am using jenkins 2.361.2 version and i have "Copy to Slave" plugin
> version 1.4.4 .
> …
> FATAL: hudson/org/apache/tools/tar/TarInputStream
> java.lang.ClassNotFoundException:
> hudson.org.apache.tools.tar.TarInputStream…
> Please let me know what would be the cause for this error.
>

The plugin is incompatible with Jenkins 2.318 and newer and hasn't been
distributed by the Jenkins project since early 2018. I recommend you look
into alternative solutions for what you're currently using it for.

-- 
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/CAMo7Pt%2B4sPE83iUMCKTNUuRtzGcoSyKmW3tBuYtq_UMDEWx2gA%40mail.gmail.com.


Re: The following installed plugins are deprecated: WMI Windows Agents Plugin

2022-11-23 Thread 'Daniel Beck' via Jenkins Users
On Wed, Nov 23, 2022 at 2:26 PM 'christop...@googlemail.com' via Jenkins
Users  wrote:

> And the fact that I have trouble when disabling WMI window agents tells me
> there must be a real dependency somewhere, not only implied ones.
>

I'd expect there to be exceptions logged or other (somewhat) visible impact
that tells you more.

-- 
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/CAMo7PtKnPoqktQsb5n-mN7sq7iuAAbwvxFpTQKn_bwHp0eNWHg%40mail.gmail.com.


Re: Warning: The new version of this plugin is marked as incompatible with the installed version.

2022-11-22 Thread 'Daniel Beck' via Jenkins Users
On Tue, Nov 22, 2022 at 3:03 PM A, Ramkumar  wrote:

>
>
> We do not want to upgrade the plugin below thinking it may break the
> existing Linux executor configured on Jenkins. Is that true ?
>

I recommend you try looking at the plugin documentation. If you have done
so already, what did you find?

-- 
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/CAMo7PtJsT%2BfdCYak6g8k6aoNM%2Bq2YU%3DyC%3DdSfWekVFu6R2QERg%40mail.gmail.com.


Re: I need to fail jenkins job if any linux command return error message

2022-11-22 Thread 'Daniel Beck' via Jenkins Users
On Tue, Nov 22, 2022 at 2:54 PM Praju  wrote:

> Hi ,
> The above one I am taking as example but actual configuration is:
>   < python_file> -D&1 2 | tee gen.file.log
> above command   return "ValueError: No JSON object could be decoded"
> but the job build status is showing success
>

set -o pipefail.

You're still asking in the wrong forum.

-- 
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/CAMo7Pt%2BanC3fgF7U1RuGg1rgL%3DepirhKU-Q_CDcnUPN_FNLMQA%40mail.gmail.com.


Re: I need to fail jenkins job if any linux command return error message

2022-11-22 Thread 'Daniel Beck' via Jenkins Users
On Tue, Nov 22, 2022 at 2:11 PM Praju  wrote:

> Hi,
> below is my configuration:
>
> echo "welcome"
> echo ${var}  ( Note : I am not defined var)
> echo "hello"
>
> expected output status: failure
>
> output:
>
>  + echo welcome
> welcome
>  + echo
>
>   + echo hello
>  hello
>   Finished: SUCCESS
>

`echo ${var}` didn't fail. As you can see, it printed an empty line. By
default, bash allows references to undefined variables. Use `set -o
nounset` to change this behavior.

This really isn't a Jenkins question, this is a question about shell use,
and should be asked in the appropriate forum.

-- 
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/CAMo7PtKfohPW6id9b1KW7-KcmRg%3Dum9CT%2Be%2B4VG_b9XW6rO6VA%40mail.gmail.com.


Re: Jenkins selected filtering values in parameter objects

2022-10-27 Thread 'Daniel Beck' via Jenkins Users
On Thu, Oct 27, 2022 at 3:39 PM Chennai Cheetah 
wrote:

> How do I get only selected jenkins information from the API response.
>
> …
>
> How do I filter rulesetid,branch details only from the parameter object,
> while rest of the parameters are not required in the response.
>
Work with the XML API output and use an XPath expression, or process the
JSON API responses using a tool like jq.

-- 
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/CAMo7PtJOoPVU9Lop%2BTFL9%2BEALVF2uVgcewkEp240DxCp%2BVBGHA%40mail.gmail.com.


Re: HTTPS - works okay, but 2 problems

2022-09-28 Thread 'Daniel Beck' via Jenkins Users
On Wed, Sep 28, 2022 at 12:00 PM James Nord  wrote:

> jenkins (winstone) can load arguments from a config file in addition to
> the command line (--config).
> https://github.com/jenkinsci/winstone#configuration-file
>
> so you can (should be able) to put the password in that file.
>
> Now if you put the password in that file and make it read only by the
> jenkins user you have not really gained anything over using a passwordless
> key/certificate file that is read only by the jenkins user...
>
> (allthough I guess you could hack the systemd command to write the file
> before startup, pass the argument and then wait until Jenkins has started
> and remove the file, then only root has access normally to the password in
> the systemd configuration)
>

 There's also --paramsFromStdIn as documented at
https://github.com/jenkinsci/extras-executable-war#parameters-from-stdin

-- 
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/CAMo7PtJYKF-QdZY2q_Q05qZiLBwrbe_nteyY0JXOF-yBisAn7g%40mail.gmail.com.


Re: Jenkins 2.263.1 broke after upgrading git plugin from 4.7.0 to 4.8.0

2022-08-30 Thread 'Daniel Beck' via Jenkins Users
On Tue, Aug 30, 2022 at 2:15 PM Hamid Gholami  wrote:

>
> com.thoughtworks.xstream.mapper.CannotResolveClassException: hudson
> .security.LDAPSecurityRealm 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.java
> :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:379) 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 hudson.util.RobustReflectionConverter.determineType
> (RobustReflectionConverter.java:476) at hudson.util
> .RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:326)
> Caused: jenkins.util.xstream.CriticalXStreamException: hudson.security
> .LDAPSecurityRealm : hudson.security.LDAPSecurityRealm  Debugging
> information  message : hudson.security.LDAPSecurityRealm
> cause-exception : com.thoughtworks.xstream.mapper
> .CannotResolveClassException cause-message : hudson.security
> .LDAPSecurityRealm class : hudson.model.Hudson required-type : hudson
> .model.Hudson converter-type : hudson.util.RobustReflectionConverter path
> : /hudson/securityRealm line number : 169 version : not available
>

Looks like LDAP Plugin is disabled or failed to load, while being the
configured security realm. Find out why and fix that.

-- 
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/CAMo7Pt%2BVuNhTXEh4paAnRx5tB570%3D-37dvNaskeEYQ7crjgaTw%40mail.gmail.com.


Re: Jenkins CI CD pipeline for Auto genarate a Single Executable Windows Installaer (Windows .exe file) from a Angular Electron Desktop Application

2022-08-18 Thread 'Daniel Beck' via Jenkins Users
On Thu, Aug 18, 2022 at 3:30 PM Pritam Roy  wrote:

> As of now manually we have done thses thing by help of Third party
> software in our Windows machine (eg, Inno Setup). But I can't get any clue
> that how can we automate these thing under our Jenkins CI CD process.
>

This process almost always looks like this:
1. Figure out how to automate whatever you're doing in a script.
2. Have Jenkins invoke your script.

In this case, https://jrsoftware.org/ishelp/topic_compilercmdline.htm looks
like the relevant documentation.


> Note. I am using Jenkins Server in Ubuntu Machine.
>

https://www.jenkins.io/redirect/distributed-builds/ and
https://www.jenkins.io/doc/book/managing/nodes/ explains how to set up
distributed builds in Jenkins if you haven't already. You can add a Windows
agent to your Linux Jenkins controller, and have Jenkins
run batch/powershell scripts there.

-- 
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/CAMo7PtJsLaztff6PrjVx4TbW445L6cRRQfdJdzTHzxEK%3DiySGw%40mail.gmail.com.


Re: Invalid cert "https://charts.jenkins.io/index.yaml"

2022-06-20 Thread 'Daniel Beck' via Jenkins Users
On Mon, Jun 20, 2022 at 2:01 PM Jorge Quesada  wrote:

> I paste the proof that the certificates are possibly expired
>

Well…

Not Before: Jun 17 09:40:36 2022 GMT
> Not After: Sep 15 09:40:35 2022 GMT
>

It's June 20. The certs aren't expired. Ask your IT folks to fix your
environment.

-- 
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/CAMo7PtJkiPXG4Dx4nkoUQZQoKyEc1uq4j7jL7L_iWaemNs8CQg%40mail.gmail.com.


Re: Where can I find Jenkins System user ?

2022-06-20 Thread 'Daniel Beck' via Jenkins Users
On Sat, Jun 18, 2022 at 9:39 AM yarin kossover  wrote:

> On Vanilla setup, how can I find the system user ( AKA "Running as
> SYSTEM"  )
>

It's an internal-only user. It allows internal processes in Jenkins to run
with full permissions.

https://www.jenkins.io/doc/book/security/build-authorization/ documents how
to change the identity that builds are running as.

-- 
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/CAMo7PtK3kFne2Ymd%2BZb6ugeEyrega51BzAUmPfEgW1kgfFUtqA%40mail.gmail.com.


Re: Scriptler using GET in Jenkins2

2022-05-19 Thread 'Daniel Beck' via Jenkins Users
On Wed, May 18, 2022 at 10:02 PM adam.l...@gmail.com <
adam.l.lev...@gmail.com> wrote:

>  But the way I read that is as a warning: subject to CSRF problems, be
> warned.  I don't see any indication that GET has been disabled.
>
> What am I not seeing?
>

With publication of the advisory, we suspended distribution of the plugin
for a while until the issues were fixed in release 3.0. The fix for this
was to require POST, which Jenkins applies CSRF protection to. Advisories
are not updated when previously unresolved issues are fixed, so it
still says that as of publication, there is no fix.

-- 
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/CAMo7Pt%2BRzvyUo6r4H9GHqREyY3ePiAiBdw0bPHh6nUnvZVqiqA%40mail.gmail.com.


Re: Scriptler using GET in Jenkins2

2022-05-18 Thread 'Daniel Beck' via Jenkins Users
On Wed, May 18, 2022 at 9:01 PM adam.l...@gmail.com 
wrote:

> On Jenkins 1.x we can call scriptlet entries using GET.
> On Jenkin 2.x, any GET attempts are being returned with an error that they
> must be done via POST
>

That's a security fix. See
https://www.jenkins.io/security/advisory/2017-04-10/#script-management-vulnerable-to-cross-site-request-forgery-attacks-in-scriptler-plugin

-- 
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/CAMo7PtJg6T__pdgA4jdcxrcLbWkr%3Dmd0ndYoa%3D0cW_E2M1%3D%3DNg%40mail.gmail.com.


Re: How to create/update Jenkins job via REST API in Java?

2022-04-11 Thread 'Daniel Beck' via Jenkins Users
On Mon, Apr 4, 2022 at 11:13 AM Jon Brohauge  wrote:

> Whenever I try to POST a job, using a Basic Authentication with the
> “username:password” base64 encoded, I get a 403.
>

Crumbs are session-specific since 2.176.2:
https://www.jenkins.io/doc/upgrade-guide/2.176/#upgrading-to-jenkins-lts-2-176-2

Either use an API token, or record the `Set-Cookie` response header and it
the same session ID with every subsequent request.


> Whenever I try to POST a job, using a Basic Authentication with the
> “username:apitoken” base64 encoded, I get a 500. The apitoken has been
> handmade just for this test.
>

The reason for the HTTP 500 is something the logs on Jenkins should tell
you. My guess is you forgot to set `Content-Type: text/xml` as documented
in `/job/whatever/api/`.

-- 
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/CAMo7PtK7WUYUD5AV%2BQr8MvdJ8fjJrJCa5%2B4dNwKedTs_a0OLxA%40mail.gmail.com.


Re: Reasons for workspace cleanup

2022-04-11 Thread 'Daniel Beck' via Jenkins Users
On Mon, Apr 11, 2022 at 2:05 PM Fabian Cenedese  wrote:

> At 13:53 11.04.2022, you wrote:
>
> >Workspaces Jenkins considers "unused" are wiped periodically. While this
> is intended to be safe, i.e., never delete the last workspace, or
> workspaces of running builds, it's not impossible that "active" workspaces
> are caught in rare circumstances. Check the workspace cleanup log in your
> Jenkins home to see whether this happens to you, or enable detailed (FINE)
> logging for the logger "hudson.model.WorkspaceCleanupThread".
>
> Thanks for the info, that's what seems to be happening. I'll see if I can
> check this in case it happens again. Is this something that can be
> influenced in the settings or is it completely automatic? Would I need
> to run a job more often to prevent this? Or I could put all my files in
> a different directory outside the workspace and change into it in
> the job. That way there's nothing to delete in the configured workspace.
>

This is completely automated and invisible beyond log entries (probably not
great). While there are some possible approaches to stop Jenkins from doing
that when it occurs with regular Jenkins jobs, your situation is different.
In your particular case, you're using what amounts to a Jenkins-managed
resource outside Jenkins. The cleanest solution is what you suggest: to
stop doing that, run your cron job somewhere else, and limit Jenkins
workspace use to actual Jenkins jobs.

-- 
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/CAMo7Pt%2BxqNi77CWva8KtkCcwNMsGrjkd6qJRR5nH_16KG4sq2Q%40mail.gmail.com.


Re: Reasons for workspace cleanup

2022-04-11 Thread 'Daniel Beck' via Jenkins Users
Workspaces Jenkins considers "unused" are wiped periodically. While this is
intended to be safe, i.e., never delete the last workspace, or workspaces
of running builds, it's not impossible that "active" workspaces are caught
in rare circumstances. Check the workspace cleanup log in your Jenkins home
to see whether this happens to you, or enable detailed (FINE) logging for
the logger "hudson.model.WorkspaceCleanupThread".

(Code reference in case you're curious:
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/WorkspaceCleanupThread.java
)

-- 
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/CAMo7PtLhDo_Ntn_HwZCk4zVy4qP1drqfsdNFsKaDefKh8s4awA%40mail.gmail.com.


Re: Plugin update "Jenkins (2.323) or higher required"

2022-03-09 Thread 'Daniel Beck' via Jenkins Users
On Tue, Mar 8, 2022 at 12:44 PM Stefan Coussens 
wrote:

> Hi,
>
> We are using the LST cycle but this gives issues when I try to update
> plugins.
> My use case:
>
> Ansible playbook updates the linux server (and jenkins LST if available)
> After that I use an ansible playbook to (
> https://github.com/wcm-io-devops/ansible-jenkins-facts) look for plugins
> where "hasUpdate = true" and then update the plugin.
>
> This has failed a couple of times and when jenkins loads I get :
>
>
> XXX Plugin
> Jenkins (2.323) or higher required
>
> What method returns if an plugin is compatible with the current version of
> jenkins?
> (https://javadoc.jenkins.io/hudson/model/UpdateSite.Plugin.html)
>
> What does "isForNewerHudson()" do?
>
> I think I want the
>
> isCompatible
> 
> ()
> Returns true if the plugin and its dependencies are fully compatible with
> the current installation This is set to restricted for now, since it is
> only being used by Jenkins UI or Restful API at the moment.
>
> field/method but this is restricted ;(
>

#isForNewerHudson is a reasonable idea, but with the improved update site
tiering that should only matter for 3rd party update sites, outdated
releases of Jenkins (>12 months), or misconfigured instances.

Make sure you access update-center.json URLs with the ?version query
parameter and specify which version of Jenkins you're on unless you track
the latest release. Jenkins does that automatically, if you bypass Jenkins
you need to add this.
Docs: https://github.com/jenkins-infra/update-center2/tree/master/site

-- 
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/CAMo7PtLxWV%2BtgaB4srwn%2BpQkoFzty%2B4jr-UkFLtu3k5g6%3D0QVg%40mail.gmail.com.


Re: Error updating plugins from Jenkins

2021-11-19 Thread 'Daniel Beck' via Jenkins Users



> On 19. Nov 2021, at 20:52, Mark Waite  wrote:
> 
> I thought that certificate could be reported when a request is made to the IP 
> address of an HTTP server hosted in Kubernetes.  The Kubernetes server needs 
> the hostname in order to use the correct SSL certificate (or something like 
> that).
> 

https://en.wikipedia.org/wiki/Server_Name_Indication

The Kubernetes cert in the first message is the one for get.jenkins.io without 
SNI.

-- 
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/FB5C5087-FB3F-436D-8B30-946BCEB9CBDD%40beckweb.net.


Re: Resource Root Problem Post Upgrade

2021-11-02 Thread 'Daniel Beck' via Jenkins Users
On Tue, Nov 2, 2021 at 2:27 AM Matt Wilson  wrote:

>
> Caused by: java.lang.NullPointerException
> at
> jenkins.security.ResourceDomainConfiguration.checkUrl(ResourceDomainConfiguration.java:174)
> at
> jenkins.security.ResourceDomainConfiguration.doCheckUrl(ResourceDomainConfiguration.java:88)
>

The URL responds with a 404 error message and has no response message (of
course error handling should be better). Would look at reverse proxy or a
nondefault web container as the likely culprit (I just checked ci.jenkins.io
to be sure it's not a general problem, and its resource root URL works as
expected).

Another option might be problems with the instance-identity module I use to
determine URL correctness, but then the actual URLs should work, and only
form validation be broken.

-- 
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/CAMo7PtLa4e-36LG6NWwaD70c1FvCqhS8v%2BaVASmAtTe%2BA39ttg%40mail.gmail.com.


Re: Resource Root Problem Post Upgrade

2021-11-01 Thread 'Daniel Beck' via Jenkins Users
On Mon, Nov 1, 2021 at 8:11 PM Matt Wilson  wrote:

> Logging ID=5d0d5334--4ac8-a484-7deef5d062fa
>

Check the Jenkins system log for the corresponding error message.

-- 
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/CAMo7PtKMT7k5o9ho8gboFWg36UFBv5APyS-AgMw7bRpcoS_VoQ%40mail.gmail.com.


Re: Blue Ocean Status Update

2021-10-18 Thread 'Daniel Beck' via Jenkins Users
On Mon, Oct 18, 2021 at 10:43 AM Oleg Nenashev 
wrote:

>
>- Remove Blue Ocean from the list of recommended plugins in Jenkins
>
>
It never was in the setup wizard, just on jenkins.io docs and such.

-- 
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/CAMo7PtJiqjmEauGWWHzZVH87m3fjCgeOLRni%3DBtF980JanxwRA%40mail.gmail.com.