ks-devops icon indicating copy to clipboard operation
ks-devops copied to clipboard

[Front-end] avoid using API tojson and tojenkinsfile

Open LinuxSuRen opened this issue 2 years ago • 3 comments

LinuxSuRen avatar Jul 04 '22 07:07 LinuxSuRen

/area console

LinuxSuRen avatar Jul 04 '22 07:07 LinuxSuRen

For this issue, the front-end needs to abandon two APIs:

  • v1alpha2/tojenkinsfile
  • v1alpha2/tojson

then you could update the Jenkinsfile with JSON or raw format with the following API. Please feel free to read more details about this API from the swagger.

  • /v1alpha3/devops/{devops}/pipelines/{pipeline}/jenkinsfile

you could get the JSON format of the Jenkinsfile from annotation with key pipeline.devops.kubesphere.io/jenkinsfile

LinuxSuRen avatar Jul 12 '22 02:07 LinuxSuRen

/assign

bunnymiao avatar Jul 12 '22 06:07 bunnymiao

截屏2023-01-29 23 16 07 截屏2023-01-30 11 40 50

There are still tojson api call,need to remove.

chilianyi avatar Jan 30 '23 03:01 chilianyi

add jenkinsfile.validate to annotation valid values are success and failure

if failure, show like this: 截屏2023-01-30 14 53 37

if there is no jenkinsfile.validate, due as success.

chilianyi avatar Feb 09 '23 05:02 chilianyi