Tips & Tricks

Wyłączenie security

Tutorial ze strony Securing Jenkins:

  1. Stop Jenkins (the easiest way to do this is to stopthe servlet container.)
  2. Go to $JENKINS_HOME in the file system and find config.xml file.
  3. Open this file in the editor.
  4. Look for the true element in this file.
  5. Replace true with false
  6. Remove the elements authorizationStrategy and securityRealm
  7. Start Jenkins
  8. When Jenkins comes back, it will be in an unsecured mode where everyone gets full access to the system.

Znalezienie $JENKINS_HOME

Katalog domowy Jenkinsa zawiera się w ścieżce, która jest podana z inicjalnym sekretem przy instalacji. Przykładowo, gdy ścieżka z hasłem to:

/Users/Shared/Jenkins/Home/secrets/initialAdminPassword

Wtedy ścieżka do katalogu domowego Jenkinsa to:

/Users/Shared/Jenkins/Home

Restart Jenkinsa

Jenkins może zostać zrestartowany na dwa sposoby:

  • Poprzez URL
  • Za pomocą komendy w terminalu

Restart przez URL

Aby zrestartować Jenkinsa za pomocą URL należy w przeglądarce przejść do strony:

localhost:8080/safeRestart

W tym trybie wszystkie bieżace zadania zostaną zakończone i dopiero wtedy nastapi ponowne uruchomienie serwera.

Aby pominąc oczekiwanie na zakończenie bieżących zadań należy w przeglądarce przejść do strony

localhost:8080/restart

Restart za pomocą wiersza poleceń

W zależności od systemu operacyjnego inną komendą będziemy restartować serwer Jenkinsa. Dla systemu OS X będą to polecenia:

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

Dla Ubuntu wystarczy polecenie:

/etc/init.d/jenkins restart

results matching ""

    No results matching ""