求CODING 持续集成自动生成HEXO 教程。 [复制链接]

帖子链接已复制到剪贴板
KOK (UID: 3119) 7月前

953 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://令牌用户名:令牌密码8@e.coding.net/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)
提示:您必须 登录 才能查看此内容。
创建新帖
广告推广点击空位自助购买