Browse Source

优化保存流水线-镜像

dev
chenzhihang 7 months ago
parent
commit
cb8a7ec41e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/WorkflowServiceImpl.java

+ 1
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/WorkflowServiceImpl.java View File

@@ -358,7 +358,7 @@ public class WorkflowServiceImpl implements WorkflowService {
imageUrl = (String) image.get("showValue");
}
String[] imageSplit = imageUrl.split(":");
String tagName = imageSplit[1];
String tagName = imageSplit[imageSplit.length - 1];
ImageVersion imageVersion = imageVersionDao.queryByUrl(imageUrl);
insertAssetWorkFlow(workflowId, workflowName, Long.valueOf(imageVersion.getImageId()), tagName, Constant.Asset_Type_Image);
} catch (Exception e) {


Loading…
Cancel
Save