Last active
July 29, 2019 23:06
-
-
Save Kento75/6e4bb99162cb48eecb0e9f48473fbc3e to your computer and use it in GitHub Desktop.
【Jenkins備忘録】Python自動テスト環境構築③jenkins準備編 ref: https://qiita.com/Kento75/items/2ecd1f3251c9c344ca69
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install -y openjdk-8-jdk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 公開鍵の追加 | |
$ wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - | |
$ sudo sh -c "echo 'deb http://pkg.jenkins-ci.org/debian-stable binary/' > /etc/apt/sources.list.d/jenkins.list" | |
# パッケージ更新 | |
$ sudo apt-get update -y | |
# jenkinsのインストール | |
$ sudo apt-get install -y jenkins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jenkinsの有効化 | |
$ sudo systemctl enable jenkins | |
# jenkinsの起動 | |
$ sudo systemctl start jenkins | |
# jenkinsの初期パスワードを表示 | |
$ sudo cat /var/lib/jenkins/secrets/initialAdminPassword |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment