1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

jenkinsとgitつなげる

Posted at

ls -l /usr/local/jenkins/plugins 以下に

・git.hpi
・git-client.hpi
・scm-api.hpi

があるのを確認

プロジェクト 設定

ソースコードの管理

✓ Git
・Repository URL
http://192.168.10.xx:8080/gitbucket/git/root/test.git
(gitbucketで設定されたURL)
・Credentials なし
以下デフォルト

手動で実行

######## 以下動かない? ###########
/root/test/.git/hooks
ができるので

vi post-receive


#!/bin/bash

curl -X POST http://192.168.10.xx:8090/jobs/app-test-job/builds


参考

https://ics.media/entry/3283
JenkinsでCI環境構築チュートリアル ~GitHubからWebサーバーへのデプロイ~

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?