标签:git push hang pack int robocopy query build actual sch
在
https://www.cnblogs.com/lqerio/p/11117498.html
使用了appveyor 进行 hexo 博客的版本控制持续集成。
今天push 到 github的 repo时报错 appveyor build failed
打开appveyor 的细节提示
Build started git clone -q --depth=5 --branch=master https://github.com/TouwaErioH/TouwaErioH.github.io.source.git C:\projects\touwaerioh-github-io-source git checkout -qf 7b641c12aa046f78b06c568475a6f514e1aef6e4 Running Install scripts node --version v8.17.0 npm --version 6.13.4 npm install npm ERR! code EINTEGRITY npm ERR! sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ== integrity checksum failed when using sha512: wanted sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ== but got sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==. (13081 bytes) npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\appveyor\AppData\Roaming\npm-cache\_logs\2020-02-13T12_02_15_069Z-debug.log Command exited with code 1
Build started git clone -q --depth=5 --branch=master https://github.com/TouwaErioH/TouwaErioH.github.io.source.git C:\projects\touwaerioh-github-io-source git checkout -qf a4f6fc837cf7b41594ba268f2373d141644e731b Running Install scripts node --version v8.17.0 npm --version 6.13.4 npm cache verify Cache verified and compressed (~\AppData\Roaming\npm-cache\_cacache): Content verified: 0 (0 bytes) Index entries: 0 Finished in 0.032s npm install --registry=https://registry.npm.taobao.org npm ERR! code EINTEGRITY npm ERR! sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ== integrity checksum failed when using sha512: wanted sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ== but got sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==. (13081 bytes) npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\appveyor\AppData\Roaming\npm-cache\_logs\2020-02-13T17_16_45_726Z-debug.log Command exited with code 1
解决:同时采用了下面的办法
1.先更新了本地的nodejs
在CMD
npm install -g npm --registry=https://registry.npm.taobao.org
注意要加 后面的换阿里源,否则报错
rollbackFailedOptional
2.
删除本地 github.io.source 文件夹下的package-lock.json 文件,然后push到github(也就是删除了库里的这个文件) // 我觉得是这个步骤起到了作用。网上说的意思大概是之前的package-lock.json文件可能有版本问题,而更新后的nodejs (5.0版本之后)会自动生成该文件,所以删掉之前的
3.修改了 github.io.source的 appveyor.yml。修改的地方是在install 加了阿里源
clone_depth: 5 environment: access_token: secure: e0WeAfddWE5azhP8gJ2o6guP53olymSbeTUBSYsuPjv1do0oBt7tEZWz8e23OJeW install: - node --version - npm --version - npm cache verify - npm install --registry=https://registry.npm.taobao.org - npm install hexo-cli -g --registry=https://registry.npm.taobao.org build_script: - hexo generate artifacts: - path: public on_success: - git config --global credential.helper store - ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n" - git config --global user.email "%GIT_USER_EMAIL%" - git config --global user.name "%GIT_USER_NAME%" - git clone --depth 5 -q --branch=%TARGET_BRANCH% %STATIC_SITE_REPO% %TEMP%\static-site - cd %TEMP%\static-site - del * /f /q - for /d %%p IN (*) do rmdir "%%p" /s /q - SETLOCAL EnableDelayedExpansion & robocopy "%APPVEYOR_BUILD_FOLDER%\public" "%TEMP%\static-site" /e & IF !ERRORLEVEL! EQU 1 (exit 0) ELSE (IF !ERRORLEVEL! EQU 3 (exit 0) ELSE (exit 1)) - git add -A - if "%APPVEYOR_REPO_BRANCH%"=="master" if not defined APPVEYOR_PULL_REQUEST_NUMBER (git diff --quiet --exit-code --cached || git commit -m "Update Static Site" && git push origin %TARGET_BRANCH% && appveyor AddMessage "Static Site Updated")
然后再写了新的md,push,过一会儿就自动部署了。
再看appveyor 的 project的详细信息,部署success
Build started git clone -q --depth=5 --branch=master https://github.com/TouwaErioH/TouwaErioH.github.io.source.git C:\projects\touwaerioh-github-io-source git checkout -qf 454e88740d78a70a5454988c1133c5f21761ea3a Running Install scripts node --version v8.17.0 npm --version 6.13.4 npm cache verify Cache verified and compressed (~\AppData\Roaming\npm-cache\_cacache): Content verified: 0 (0 bytes) Index entries: 0 Finished in 0.031s npm install --registry=https://registry.npm.taobao.org npm WARN deprecated swig@1.4.2: This package is no longer maintained npm WARN deprecated core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. > core-js@2.6.11 postinstall C:\projects\touwaerioh-github-io-source\node_modules\babel-runtime\node_modules\core-js > node -e "try{require(‘./postinstall‘)}catch(e){}" > ejs@2.7.4 postinstall C:\projects\touwaerioh-github-io-source\node_modules\ejs > node ./postinstall.js npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"}) added 437 packages from 536 contributors in 50.054s 2 packages are looking for funding run `npm fund` for details npm install hexo-cli -g --registry=https://registry.npm.taobao.org C:\Users\appveyor\AppData\Roaming\npm\hexo -> C:\Users\appveyor\AppData\Roaming\npm\node_modules\hexo-cli\bin\hexo npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules\hexo-cli\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"}) + hexo-cli@3.1.0 added 74 packages from 319 contributors in 8.387s hexo generate INFO Start processing WARN =============================================================== WARN ========================= ATTENTION! ========================== WARN =============================================================== WARN NexT repository is moving here: https://github.com/theme-next WARN =============================================================== WARN It‘s rebase to v6.0.0 and future maintenance will resume there WARN =============================================================== INFO Files loaded in 1.46 s INFO Generated: search.xml INFO Generated: index.html INFO Generated: favicon.ico INFO Generated: categories/index.html INFO Generated: tags/index.html INFO Generated: archives/index.html INFO Generated: about/index.html INFO Generated: categories/diary/index.html INFO Generated: categories/virus/index.html INFO Generated: tags/thoughts/index.html INFO Generated: tags/dp/index.html INFO Generated: tags/宏/index.html INFO Generated: images/00.jpg INFO Generated: images/Sakurai Akimi.jpg INFO Generated: images/algolia_logo.svg INFO Generated: images/apple-touch-icon-next.png INFO Generated: images/avatar.gif INFO Generated: images/cc-by-nc-sa.svg INFO Generated: images/cc-by-nc-nd.svg INFO Generated: images/cc-by-nd.svg INFO Generated: images/cc-by-sa.svg INFO Generated: images/cc-by-nc.svg INFO Generated: images/cc-by.svg INFO Generated: images/cc-zero.svg INFO Generated: images/favicon-16x16-next.png INFO Generated: images/favicon-32x32-next.png INFO Generated: images/loading.gif INFO Generated: images/placeholder.gif INFO Generated: images/logo.svg INFO Generated: images/quote-r.svg INFO Generated: images/quote-l.svg INFO Generated: images/searchicon.png INFO Generated: archives/2018/08/index.html INFO Generated: archives/2018/12/index.html INFO Generated: images/timg.jpg INFO Generated: images/00.jpeg INFO Generated: images/kk.jpg INFO Generated: archives/2018/index.html INFO Generated: archives/2019/index.html INFO Generated: archives/2019/01/index.html INFO Generated: lib/fastclick/LICENSE INFO Generated: lib/algolia-instant-search/instantsearch.min.css INFO Generated: lib/canvas-nest/canvas-nest.min.js INFO Generated: lib/canvas-ribbon/canvas-ribbon.js INFO Generated: lib/needsharebutton/needsharebutton.css INFO Generated: lib/jquery_lazyload/bower.json INFO Generated: lib/pace/pace-theme-big-counter.min.css INFO Generated: css/main.css INFO Generated: lib/velocity/bower.json INFO Generated: lib/three/canvas_lines.min.js INFO Generated: lib/jquery/index.js INFO Generated: archives/2019/04/index.html INFO Generated: images/hui.jpeg INFO Generated: lib/font-awesome/bower.json INFO Generated: lib/fastclick/bower.json INFO Generated: lib/jquery_lazyload/jquery.lazyload.js INFO Generated: lib/pace/pace-theme-bounce.min.css INFO Generated: lib/jquery_lazyload/jquery.scrollstop.js INFO Generated: lib/pace/pace-theme-barber-shop.min.css INFO Generated: lib/pace/pace-theme-center-radar.min.css INFO Generated: lib/pace/pace-theme-center-atom.min.css INFO Generated: lib/pace/pace-theme-center-simple.min.css INFO Generated: lib/pace/pace-theme-center-circle.min.css INFO Generated: lib/pace/pace-theme-fill-left.min.css INFO Generated: lib/pace/pace-theme-corner-indicator.min.css INFO Generated: lib/velocity/velocity.ui.min.js INFO Generated: lib/pace/pace-theme-mac-osx.min.css INFO Generated: lib/pace/pace-theme-flash.min.css INFO Generated: lib/pace/pace-theme-minimal.min.css INFO Generated: lib/fastclick/README.html INFO Generated: lib/jquery_lazyload/CONTRIBUTING.html INFO Generated: lib/pace/pace.min.js INFO Generated: lib/pace/pace-theme-loading-bar.min.css INFO Generated: lib/velocity/velocity.min.js INFO Generated: lib/needsharebutton/font-embedded.css INFO Generated: lib/jquery_lazyload/README.html INFO Generated: lib/three/canvas_sphere.min.js INFO Generated: lib/three/three-waves.min.js INFO Generated: lib/needsharebutton/needsharebutton.js INFO Generated: lib/algolia-instant-search/instantsearch.min.js INFO Generated: lib/velocity/velocity.ui.js INFO Generated: lib/font-awesome/HELP-US-OUT.txt INFO Generated: lib/velocity/velocity.js INFO Generated: lib/three/three.min.js INFO Generated: lib/font-awesome/fonts/fontawesome-webfont.woff INFO Generated: lib/Han/dist/font/han-space.otf INFO Generated: lib/fancybox/source/helpers/fancybox_buttons.png INFO Generated: js/src/affix.js INFO Generated: lib/ua-parser-js/dist/ua-parser.min.js INFO Generated: lib/fastclick/lib/fastclick.min.js INFO Generated: js/src/algolia-search.js INFO Generated: lib/font-awesome/fonts/fontawesome-webfont.woff2 INFO Generated: js/src/exturl.js INFO Generated: js/src/bootstrap.js INFO Generated: js/src/hook-duoshuo.js INFO Generated: js/src/js.cookie.js INFO Generated: js/src/motion.js INFO Generated: js/src/post-details.js INFO Generated: js/src/scroll-cookie.js INFO Generated: lib/fancybox/source/jquery.fancybox.css INFO Generated: lib/ua-parser-js/dist/ua-parser.pack.js INFO Generated: js/src/scrollspy.js INFO Generated: js/src/utils.js INFO Generated: lib/fancybox/source/helpers/jquery.fancybox-buttons.js INFO Generated: lib/fancybox/source/helpers/jquery.fancybox-buttons.css INFO Generated: lib/fancybox/source/helpers/jquery.fancybox-media.js INFO Generated: lib/fancybox/source/helpers/jquery.fancybox-thumbs.css INFO Generated: lib/Han/dist/han.min.css INFO Generated: lib/fancybox/source/jquery.fancybox.js INFO Generated: lib/Han/dist/han.min.js INFO Generated: lib/fastclick/lib/fastclick.js INFO Generated: lib/font-awesome/css/font-awesome.css INFO Generated: lib/Han/dist/han.css INFO Generated: lib/fancybox/source/helpers/jquery.fancybox-thumbs.js INFO Generated: lib/Han/dist/han.js INFO Generated: 2019/04/21/置顶/index.html INFO Generated: lib/font-awesome/fonts/fontawesome-webfont.svg INFO Generated: lib/fancybox/source/jquery.fancybox.pack.js INFO Generated: lib/font-awesome/css/font-awesome.min.css INFO Generated: 2018/12/01/codeforces-235B/index.html INFO Generated: lib/font-awesome/fonts/FontAwesome.otf INFO Generated: lib/fancybox/source/blank.gif INFO Generated: lib/fancybox/source/fancybox_loading@2x.gif INFO Generated: lib/font-awesome/fonts/fontawesome-webfont.ttf INFO Generated: lib/fancybox/source/fancybox_overlay.png INFO Generated: lib/fancybox/source/fancybox_sprite@2x.png INFO Generated: lib/font-awesome/fonts/fontawesome-webfont.eot INFO Generated: lib/Han/dist/font/han-space.woff INFO Generated: lib/Han/dist/font/han.otf INFO Generated: lib/fancybox/source/fancybox_loading.gif INFO Generated: lib/fancybox/source/fancybox_sprite.png INFO Generated: lib/Han/dist/font/han.woff INFO Generated: lib/font-awesome/css/font-awesome.css.map INFO Generated: lib/Han/dist/font/han.woff2 INFO Generated: 2019/01/18/18-19/index.html INFO Generated: 2019/04/14/简单的宏病毒/index.html INFO Generated: 2018/08/27/Some-thoughts-in-the-2018-summer/index.html INFO Generated: 2018/12/01/Hexo的版本控制与持续集成/index.html INFO Generated: js/src/schemes/pisces.js INFO 139 files generated in 2.66 s Discovering tests...OK Collecting artifacts... Found artifact ‘public‘ matching ‘public‘ path Uploading artifacts... [1/1] public.zip (2,263,921 bytes)...100% git config --global credential.helper store Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n" git config --global user.email "%GIT_USER_EMAIL%" git config --global user.name "%GIT_USER_NAME%" git clone --depth 5 -q --branch=%TARGET_BRANCH% %STATIC_SITE_REPO% %TEMP%\static-site cd %TEMP%\static-site del * /f /q for /d %%p IN (*) do rmdir "%%p" /s /q SETLOCAL EnableDelayedExpansion & robocopy "%APPVEYOR_BUILD_FOLDER%\public" "%TEMP%\static-site" /e & IF !ERRORLEVEL! EQU 1 (exit 0) ELSE (IF !ERRORLEVEL! EQU 3 (exit 0) ELSE (exit 1)) ------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows ------------------------------------------------------------------------------- Started : Friday, February 14, 2020 5:49:28 AM Source : C:\projects\touwaerioh-github-io-source\public Dest : C:\Users\appveyor\AppData\Local\Temp\1\static-site Files : *.* Options : *.* /S /E /DCOPY:DA /COPY:DAT /R:1000000 /W:30 ------------------------------------------------------------------------------ 3 C:\projects\touwaerioh-github-io-source\public *EXTRA Dir -1 C:\Users\appveyor\AppData\Local\Temp\1\static-site\.git100% 100% 100% New Dir 0 C:\projects\touwaerioh-github-io-source\public\2018 New Dir 0 C:\projects\touwaerioh-github-io-source\public\2018\08 New Dir 0 C:\projects\touwaerioh-github-io-source\public\2018\08\27 New Dir 1 C:\projects\touwaerioh-github-io-source\public\2018\08\27\Some-thoughts-in-the-2018-summer100% New Dir 0 C:\projects\touwaerioh-github-io-source\public\2018\12 New Dir 0 C:\projects\touwaerioh-github-io-source\public\2018\12\01 New Dir 1 C:\projects\touwaerioh-github-io-source\public\2018\12\01\codeforces-235B100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\2018\12\01\Hexo??????????100% New Dir 0 C:\projects\touwaerioh-github-io-source\public\2019 New Dir 0 C:\projects\touwaerioh-github-io-source\public\2019\01 New Dir 0 C:\projects\touwaerioh-github-io-source\public\2019\01\18 New Dir 1 C:\projects\touwaerioh-github-io-source\public\2019\01\18\18-19100% New Dir 0 C:\projects\touwaerioh-github-io-source\public\2019\04 New Dir 0 C:\projects\touwaerioh-github-io-source\public\2019\04\14 New Dir 1 C:\projects\touwaerioh-github-io-source\public\2019\04\14\??????100% New Dir 0 C:\projects\touwaerioh-github-io-source\public\2019\04\21 New Dir 1 C:\projects\touwaerioh-github-io-source\public\2019\04\21\??100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\about100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\archives100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\archives\2018100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\archives\2018\08100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\archives\2018\12100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\archives\2019100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\archives\2019\01100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\archives\2019\04100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\categories100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\categories\diary100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\categories\virus100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\css100% New Dir 24 C:\projects\touwaerioh-github-io-source\public\images100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% New Dir 0 C:\projects\touwaerioh-github-io-source\public\js New Dir 11 C:\projects\touwaerioh-github-io-source\public\js\src100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\js\src\schemes100% New Dir 0 C:\projects\touwaerioh-github-io-source\public\lib New Dir 2 C:\projects\touwaerioh-github-io-source\public\lib\algolia-instant-search100% 100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\lib\canvas-nest100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\lib\canvas-ribbon100% New Dir 0 C:\projects\touwaerioh-github-io-source\public\lib\fancybox New Dir 9 C:\projects\touwaerioh-github-io-source\public\lib\fancybox\source100% 100% 100% 100% 100% 100% 100% 100% 100% New Dir 6 C:\projects\touwaerioh-github-io-source\public\lib\fancybox\source\helpers100% 100% 100% 100% 100% 100% New Dir 3 C:\projects\touwaerioh-github-io-source\public\lib\fastclick100% 100% 100% New Dir 2 C:\projects\touwaerioh-github-io-source\public\lib\fastclick\lib100% 100% New Dir 2 C:\projects\touwaerioh-github-io-source\public\lib\font-awesome100% 100% New Dir 3 C:\projects\touwaerioh-github-io-source\public\lib\font-awesome\css100% 100% 100% New Dir 6 C:\projects\touwaerioh-github-io-source\public\lib\font-awesome\fonts100% 100% 100% 100% 100% 100% New Dir 0 C:\projects\touwaerioh-github-io-source\public\lib\Han New Dir 4 C:\projects\touwaerioh-github-io-source\public\lib\Han\dist100% 100% 100% 100% New Dir 5 C:\projects\touwaerioh-github-io-source\public\lib\Han\dist\font100% 100% 100% 100% 100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\lib\jquery100% New Dir 5 C:\projects\touwaerioh-github-io-source\public\lib\jquery_lazyload100% 100% 100% 100% 100% New Dir 3 C:\projects\touwaerioh-github-io-source\public\lib\needsharebutton100% 100% 100% New Dir 14 C:\projects\touwaerioh-github-io-source\public\lib\pace100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% 100% New Dir 4 C:\projects\touwaerioh-github-io-source\public\lib\three100% 100% 100% 100% New Dir 0 C:\projects\touwaerioh-github-io-source\public\lib\ua-parser-js New Dir 2 C:\projects\touwaerioh-github-io-source\public\lib\ua-parser-js\dist100% 100% New Dir 5 C:\projects\touwaerioh-github-io-source\public\lib\velocity100% 100% 100% 100% 100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\tags100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\tags\dp100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\tags\thoughts100% New Dir 1 C:\projects\touwaerioh-github-io-source\public\tags\?100% ------------------------------------------------------------------------------ Total Copied Skipped Mismatch FAILED Extras Dirs : 61 60 0 0 0 1 Files : 139 139 0 0 0 0 Bytes : 4.69 m 4.69 m 0 0 0 0 Times : 0:00:00 0:00:00 0:00:00 0:00:00 Speed : 51802557 Bytes/sec. Speed : 2964.166 MegaBytes/min. Ended : Friday, February 14, 2020 5:49:28 AM git add -A if "%APPVEYOR_REPO_BRANCH%"=="master" if not defined APPVEYOR_PULL_REQUEST_NUMBER (git diff --quiet --exit-code --cached || git commit -m "Update Static Site" && git push origin %TARGET_BRANCH% && appveyor AddMessage "Static Site Updated") [master c65594b] Update Static Site 27 files changed, 574 insertions(+), 532 deletions(-) create mode 100644 images/Sakurai Akimi.jpg rewrite search.xml (91%) To https://github.com/TouwaErioH/TouwaErioH.github.io 125fbf5..c65594b master -> master Build success
标签:git push hang pack int robocopy query build actual sch
原文地址:https://www.cnblogs.com/lqerio/p/12306117.html