JenkinsでActive Directory連携とロールベース認可をする覚書
- Active Directory plugin https://plugins.jenkins.io/active-directory/
- Role-based Authorization Strategy https://plugins.jenkins.io/role-strategy/
- Jenkinsの管理 > グローバルセキュリティ・・ > ユーザ情報:
Active Directory
を選択 Specify custom Active Directory domain name
: checkDomain Name
: ドメイン名を入力(例: example.com)
JenkinsでActive Directory連携とロールベース認可をする覚書
- Active Directory plugin https://plugins.jenkins.io/active-directory/
- Role-based Authorization Strategy https://plugins.jenkins.io/role-strategy/
- Jenkinsの管理 > グローバルセキュリティ・・ > ユーザ情報:
Active Directory
を選択 Specify custom Active Directory domain name
: checkDomain Name
: ドメイン名を入力(例: example.com)
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
#!/bin/sh | |
repo_url=$1 | |
last_issue_num=$2 | |
issues_url="${repo_url}/issues" | |
gb_host=`echo "$repo_url" | sed 's/^\(http:\/\/[^\/]\+\)\/.*$/\1/'` | |
gb_host_esc=$(echo "${gb_host}" | sed 's/\//\\\//g') | |
function print_args () { |
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
def question(a, b, nWrong = 0): | |
s = input("%d + %d = " % (a, b)) | |
if int(s) == a + b: | |
print("正解") | |
return True | |
else: | |
print("ちがいます") | |
if nWrong < 2: | |
print("もう一度") |
gradle wrapper
を実行して、生成されたファイルもgit管理する- Spring Initializrで作った雛型には既に含まれているので実行不要
- heroku側で
./gradlew stage
でビルドされるので、stage
タスクを定義する
- SpringBootだと認識された場合は
./gradlew build -x test
が実行されるので追加不要
- dashboardの New -> Create new appから名前などを入力して新しくアプリを作成
- Settingsタブの
Heroku Git URL
にあるURLがリモートリポジトリ- 例:
https://git.heroku.com/app-name-xxxxx.git
- 例:
- このリポジトリのmasterブランチにpushすればデプロイ開始
git remote add heroku https://git.heroku.com/app-name-xxxxx.git
git push heroku master
Google Developer REST API Examples by cURL.
- Refresh Token
- refresh_token等の取得方法はGoogle API OAuth2.0のアクセストークン&リフレッシュトークン取得手順メモ - Qiita を参考に。
curl -X POST https://accounts.google.com/o/oauth2/token \
NewerOlder