Cov txheej txheem:

Kuv tuaj yeem pom kuv daim ntawv pov thawj Jenkins li cas?
Kuv tuaj yeem pom kuv daim ntawv pov thawj Jenkins li cas?

Video: Kuv tuaj yeem pom kuv daim ntawv pov thawj Jenkins li cas?

Video: Kuv tuaj yeem pom kuv daim ntawv pov thawj Jenkins li cas?
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim

Los ntawm cov Jenkins home page (i.e. tus Dashboard ntawm cov Jenkins classic UI), nyem Cov ntawv pov thawj > System rau tus sab laug. Hauv System, nyem tus Ntiaj teb no cov ntaub ntawv pov thawj (tsis txwv) txuas kom nkag mus rau qhov chaw sau npe no. Nyem Ntxiv Cov ntawv pov thawj ntawm tus sab laug.

Yog li ntawd, kuv yuav nrhiav tau kuv lub npe Jenkins username thiab password li cas?

1 Teb

  1. Rau qhov no Username yog admin. Tus password yuav tsum nyob hauv: $JENKINS_HOME/secrets/initialAdminPassword.
  2. Koj tuaj yeem saib tus password siv: miv /var/lib/jenkins/secrets/initialAdminPassword.
  3. miv $JENKINS_HOME/secrets/initialAdminPassword.

Kuv yuav decrypt Jenkins daim ntawv pov thawj li cas? 5 Teb

  1. Hauv Jenkins, mus rau: /script page.
  2. Khiav cov lus txib nram qab no: println(hudson.util. Secret.decrypt("{XXX=}")) los yog: println(hudson.util. Secret.fromString("{XXX=}").getPlainText()) qhov twg {XXX =} yog koj tus password encrypted. Qhov no yuav sau tus password yooj yim.

Tom qab ntawd, lo lus nug yog, Kuv yuav tswj cov ntawv pov thawj hauv Jenkins li cas?

Ntxiv Cov Ntawv Pov Thawj los ntawm GUI

  1. Nyem rau ntawm 'Credential' tab.
  2. Hauv 'Credential' nplooj ntawv, koj yuav pom Lub Khw hu ua 'Jenkins' thiab Domains hu ua 'Global'. Nyem rau '(global)'.
  3. Nyem rau "Add Credentials".
  4. Nyem rau ntawm "Kind" khawm dropdown. Nws yuav qhia cov hom ntawv pov thawj.
  5. Nyem rau ntawm "Scope" Dropdown menu.

Yuav siv Jenkins daim ntawv pov thawj hauv plhaub ntawv li cas?

Rau siv , ua ntej mus rau lub Cov ntawv pov thawj txuas thiab ntxiv cov khoom ntawm cov ntaub ntawv zais cia thiab / lossis cov ntawv zais cia. Tam sim no hauv txoj haujlwm freestyle, kos lub thawv Siv cov ntawv zais (cov) lossis cov ntaub ntawv thiab ntxiv qee qhov sib txawv sib txawv uas yuav siv koj cov ntaub ntawv pov thawj . Qhov tshwm sim ib puag ncig hloov pauv tuaj yeem nkag los ntawm plhaub ntawv tsim cov kauj ruam thiab lwm yam.

Pom zoo: