Commit Graph

67 Commits

Author SHA1 Message Date
johnniang
0e9d30ffe4 Add gitops.kubesphere.io group proxy 2022-02-28 11:06:20 +08:00
johnniang
291d35cf93 Refactor DevOps API proxy
Signed-off-by: johnniang <johnniang@fastmail.com>
2022-02-24 17:31:55 +08:00
johnniang
35cf45a0b7 Fix verification error and failing tests
Signed-off-by: johnniang <johnniang@fastmail.com>
2022-02-23 17:04:11 +08:00
johnniang
ef1d0fdf1d Proxy DevOps APIs with version v1alpha1
Signed-off-by: johnniang <johnniang@fastmail.com>
2022-02-23 16:03:16 +08:00
rick
6d9cf166c6 Add proxy devops APIs request to ks-devops
move devops controllers into ks-devops

Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-08-06 17:11:59 +08:00
yuswift
cd30e6eba5 update gofmt
Signed-off-by: yuswift <yuswift2018@gmail.com>
2021-07-15 10:13:04 +08:00
Roland.Ma
c37a11c5f9 move api to staging
Signed-off-by: Roland.Ma <rolandma@yunify.com>
2021-04-29 08:20:05 +00:00
rick
4ba8645bcf Fix the error caused by the wrong filter parse
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-04-19 22:28:11 +08:00
zryfish
ac275b6e98 add goimports format action (#3630)
Signed-off-by: Jeff <jeffzhang@yunify.com>
2021-03-30 13:44:24 +08:00
KubeSphere CI Bot
40e3751e43 Merge pull request #3588 from LinuxSuRen/pipeline-json-missing-env
Fix fields missing when convert Jenkinsfile to JSON
2021-03-29 18:07:30 +08:00
rick
a545effee9 Fix fields missing when convert Jenkinsfile to JSON
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-29 10:50:24 +08:00
rick
baa7ae4d69 Fix that devops admin users cannot approve a Pipeline input
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-26 13:29:25 +08:00
rick
57ffd36282 Fix the BitBucket endpoint URL redundant checking
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-23 10:25:52 +08:00
rick
bc0be03603 Fix Pipeline input failed in multi-branch mode
Signed-off-by: rick <1450685+LinuxSuRen@users.noreply.github.com>
2021-03-18 08:36:21 +08:00
shaowenchen
921341d8ce fix: pipeline sync annotations
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2021-03-02 15:11:12 +08:00
shaowenchen
f6bcdc50fd feature: add annotations to pipelines for getting syncstatus
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2021-02-24 14:19:09 +08:00
KubeSphere CI Bot
dfa1566bb9 Merge pull request #3342 from LinuxSuRen/fix-pip-filter
Fix the Pipeline name filter issues
2021-02-22 11:59:19 +08:00
KubeSphere CI Bot
57d72472c3 Merge pull request #3286 from LinuxSuRen/fix-pip-input-approve-check
Fix the incorrect approvable check of Pipeline input
2021-02-18 10:41:26 +08:00
rick
cab4915795 Fix the Pipeline name filter issues
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-02-02 15:19:55 +08:00
KubeSphere CI Bot
f32e53fce3 Merge pull request #3294 from LinuxSuRen/fix-jenkins-api-proxy
Add support to proxy Jenkins API with POST method
2021-02-01 17:39:17 +08:00
shaowenchen
2380c3b5cc improvement: update owners for devops
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2021-02-01 17:11:02 +08:00
rick
530c6911a5 Fix the incorrect approvable check of Pipeline input
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-01-27 11:25:14 +08:00
rick
2e9367fb70 Add support to proxy Jenkins API with POST method
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-01-25 11:25:59 +08:00
rick
c72a106bab Fix the pipeline list with incorrect paging calculating
Signed-off-by: rick <rick@jenkins-zh.cn>
2021-01-18 10:48:35 +08:00
rick
e2fee2cd90 Fix two issues according to review opinions
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-11 13:38:25 +08:00
rick
3d12019e23 Mix up the pipeline list between ks and Jenkins
Technically we should take the Pipeline list from ks or mixup the instead of only taking it from Jenkins. Because we always manipulate Pipeline from ks.

Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-11 13:38:20 +08:00
rick
4d9268be3d Fix devops artifact cannot be download due to auth checking
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-10 20:33:42 +08:00
KubeSphere CI Bot
bfdef0e67b Merge pull request #3156 from LinuxSuRen/pipeline-approve
Restrict only specific users or admin can approve a pipeline
2020-12-08 17:49:43 +08:00
rick
4d19c4dbb4 Provide a specific log level instead of using log.error
unifi variable declare style

Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-07 11:09:37 +08:00
rick
92e7349cf9 Fix an issue which the pipeline owner cannot approve his pipeline
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-12-02 14:07:55 +08:00
rick
8451c18277 Add unit tests for pipeline approve functions
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-30 14:09:44 +08:00
rick
df34ee9978 Adding approvable field to indicate if current user can approve a particular step
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-30 11:42:41 +08:00
rick
8f4a6d9b93 Restrict only specific users or admin can approve a pipeline
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-30 09:28:08 +08:00
rick
573dab2208 Make the logger level as 8 in the DevOps code lines
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-24 13:48:29 +08:00
rick
3293948b33 Add gitlab multi-branch pipeline support
Signed-off-by: rick <rick@jenkins-zh.cn>
2020-11-24 13:48:25 +08:00
hongming
496db42be6 refine api docs
Signed-off-by: hongming <talonwan@yunify.com>
2020-10-27 18:48:36 +08:00
KubeSphere CI Bot
d6ab60bdb4 Merge pull request #2910 from shaowenchen/fix_multibranch_sonarqube
fix:multibranch sonarqube missing
2020-08-23 08:07:59 +08:00
shaowenchen
2bdf23ae98 fix:multibranch sonarqube missing
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-08-21 15:21:46 +08:00
shaowenchen
8b4028cc30 fix jenkins download (#2898)
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-08-20 09:57:58 +08:00
zryfish
6f367e4f22 fix some swagger json errors (#2869)
Signed-off-by: Jeff <zw0948@gmail.com>
2020-08-13 13:24:58 +08:00
shaowenchen
b82dc56eee add query parameter for devops credential
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-07-31 20:36:04 +08:00
hongming
7884bcef95 legacy API compatibility
Signed-off-by: hongming <talonwan@yunify.com>
2020-07-30 18:30:41 +08:00
shaowenchen
6090874cc4 using /jenkins replace jenkins.kubesphere.io api
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-07-15 17:06:54 +08:00
shaowenchen
8a11cbc875 fix apiresult
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-06-11 18:29:22 +08:00
shaowenchen
266e85dbee fix filter credential
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-06-09 12:00:47 +08:00
shaowenchen
e723038abc fix jenkins basic
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-06-08 18:34:42 +08:00
KubeSphere CI Bot
a575c3eda8 Merge pull request #2117 from shaowenchen/fix_devops_api
modify devops api for tenant
2020-05-29 15:34:35 +08:00
shaowenchen
d83ac69d80 add license for devops
Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-05-26 10:31:14 +08:00
shaowenchen
6d3647405c fix devops api for tenant 2020-05-26 09:46:43 +08:00
shaowenchen
11b72a8817 fix create pipeline error
fix get pipelinerun list

feature kapi for devopsproject pipeline credential

fix get pipelinebranch

fix create credential api

Signed-off-by: shaowenchen <mail@chenshaowen.com>
2020-05-22 14:56:34 +08:00