coding自动推送的到github

# coding自动推送的到github

持续集成,创建构建计划,然后添加


    pipeline {
    agent any
    stages {
        stage('检出') {
        steps {
            checkout([
            $class: 'GitSCM',
            branches: [[name: env.GIT_BUILD_REF]],
            userRemoteConfigs: [[url: env.GIT_REPO_URL, credentialsId: env.CREDENTIALS_ID]]
            ])
        }
        }
        stage('推送部署') {
        steps {
            echo '正在推送文件...'
            sh 'git fetch https://joyanhui:你的token令牌@github.com/joyanhui/dev.leiyanhui.com-src.git'
            sh 'git push -f https://joyanhui:你的token令牌@github.com/joyanhui/dev.leiyanhui.com-src.git HEAD:main'
            echo '已完成文件推送.'
        }
        }
    }
    }

coding的编辑地址是类似 这样的格式

https://xxx.coding.net/p/xxxxx.com/d/xxxxx/git/tree/main/src/SUMMARY.md?tab=file

book.toml 修改编辑地址

https://xxx.coding.net/p/xxxx/d/xxxx/git/tree/main/{path}?tab=file

然后打开后 还需要再次 点一下编辑

最后

coding的 持续集成执行时间 已经是第三次 还是第四次 被优化到了 300分钟每月…

coding的在线md编辑器不怎么好用,页面复杂 加载项目多,页面加载速度甚至不如只修改hosts的 github快。。。

还经常 弹出。。。。 保存失败:不存在 最新版本 请自行保存

如果是做无主机 博客的话,不建议用coding做为国内镜像。。。垃圾中的战斗机

Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计