Skip to content

Instantly share code, notes, and snippets.

@Kento75
Last active July 29, 2019 23:06
Show Gist options
  • Save Kento75/6e4bb99162cb48eecb0e9f48473fbc3e to your computer and use it in GitHub Desktop.
Save Kento75/6e4bb99162cb48eecb0e9f48473fbc3e to your computer and use it in GitHub Desktop.
【Jenkins備忘録】Python自動テスト環境構築③jenkins準備編 ref: https://qiita.com/Kento75/items/2ecd1f3251c9c344ca69
$ sudo apt-get install -y openjdk-8-jdk
# 公開鍵の追加
$ 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
# 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