Thanks a lot. This works.
*java -jar jenkins-cli.jar keep-build <JobName> <BUILD#>*

On Friday, July 22, 2022 at 6:52:56 PM UTC+5:30 dheinric wrote:

> Am Freitag, dem 22.07.2022 um 05:00 -0700 schrieb LnT:
>
> I get gone with toggleLogKeep in My old Jenkins ver. 2.190.1 
> <https://urldefense.com/v3/__https://jenkins.io/__;!!Obbck6kTJA!Zx1sYXZJ6peyClLdlxeQmDj5GtfbtvkS298KlphXAzJVM3NV8biHtnL7WXpCcZVO_J9wBtf3kW33wWpekrsj$>
>  
> Now upgraded to Jenkins 2.332.3 
> <https://urldefense.com/v3/__https://www.jenkins.io/__;!!Obbck6kTJA!Zx1sYXZJ6peyClLdlxeQmDj5GtfbtvkS298KlphXAzJVM3NV8biHtnL7WXpCcZVO_J9wBtf3kW33wSw7BS-J$>
> Stopped now with *ERROR 403 No valid crumb was included in the request*
> what could be the issue ?
>
>
> If you were using username/pw to access the REST API in your old Jenkins, 
> you might need to switch to username/api-token now. Or, even simpler, 
> switch to the built-in SSH server:
>
> % ssh -p 2222 -i path/to/keyfile user@jenkins-host help keep-build
> java -jar jenkins-cli.jar keep-build NAME BUILD#
> Mark the build to keep the build forever.
>  NAME   : Item name
>  BUILD# : Build number
>
>
> HTH...
>
> Dirk
>
> -- 
>
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenText ™ Discovery | Recommind
> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
> *Email*: dhei...@opentext.com
> *Website*: www.recommind.de
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) 
> please notify the sender immediately and destroy this e-mail. Any 
> unauthorized copying, disclosure or distribution of the material in this 
> e-mail is strictly forbidden
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
> Weitergabe dieser Mail sind nicht gestattet.
>

-- 
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/0f6e86f1-0ccd-4988-b13b-32090f48a68bn%40googlegroups.com.

Reply via email to