本网站使用 cookie 以确保您在我们的网站上获得最佳体验。通过使用我们的网站,您承认您已阅读并理解我们的隐私政策

求CODING 持续集成自动生成HEXO 教程。

KOK (UID: 3119) 1月前

442 3

折腾了好久 不太懂这玩意 哪里错了?看不懂 网上搜索,教程看了很多 也没有参考

我的代码

pipeline {
  agent any
  stages {
    stage('pull') {
      steps {
        sh 'ls'
        sh 'git config --global user.name "KOK"'
        sh 'git config --global user.email "QQ邮箱"'
        sh 'ls'
        sh 'git clone https://令牌用户名:令牌密码[email protected]/cloudbase-5131408/kblog/kblog.git .'
      }
    }
    stage('hexo') {
      steps {
        sh 'npm install -g hexo-cli'
        sh 'npm install hexo --save'
        sh 'npm install hexo-generator-searchdb'
        sh 'npm install hexo-wordcount'
        sh 'npm install hexo-generator-feed'
        sh 'npm install hexo-deployer-git --save'
      }
    }
    stage('发布') {
      steps {
        sh 'hexo cl'
        sh 'hexo g'
        sh 'hexo d'
      }
    }
  }
}
博客 kok.plus
已有评论 (3)
  • V 橙梓 (UID: 553) @Ta
    1月前 (不知道写什么,那就写上自己的博客吧 cz.cyou/b)
    1

    你这日志看着是hexo的报错,看到你的配置文件,也没看到你要发布到哪里去,有效信息有点少了

  • KOK (UID: 3119) @Ta
    1月前 (博客 kok.plus)
    2

    谢谢回复,我已经放弃在CODING上运行了,我采取CODING作为主仓库,同步到GITHUB私密仓库,再用Github  Actions来生成。现在已经解决了。  这样就可以解决换电脑也能不扶墙的编辑博客了

  • Airh (UID: 1692) @Ta
    1月前
    3
    KOK 谢谢回复,我已经放弃在CODING上运行了,我采取CODING作为主仓库,同步到GITHUB私密仓库,再用Github Actions来生成。现在已经解决了。 这样就可以解决换电脑也能不扶墙的编辑博客 ...

    如果愿意折腾可尝试Qexo(第三方后台)+Vercel+GitHubPages

    • 大佬论坛
      4
      登录后才可回帖  登录 注册
狗云本站同款香港KC服务器 ROOVPS 便宜服务器 盾云SCDN 月付只需1元起