【ionic】ionic代码利用Jenkins构建部署出错
問題:
? ? 1.本地開發環境頁面和Jenkins部署服務器157上的開發環境頁面不一致
? ? 2.檢查了Jenkins部署的代碼是git上最新的
? ? 3.下午4點左右江濤再次配置了開發環境的資源,構建后,157上頁面顯示正常,5點半左右檢查,157頁面依舊有問題,配置的資源也失效了
? ? 4.猜測是Jenkins會同步生產環境資源配置到測試和開發 或者 Jenkins配置的問題
原因:
? ? 一、排查了Jenkins的配置:代碼拉取地址、代碼是否同步--都沒問題
? ? 二、檢查Jenkins構建日志,發現兩塊錯誤
? ? ? 1.所有項目構建時都會報的錯誤
? ? ? ? ? 2.只有本項目構建有的錯誤
> ng run app:build:betaDate: 2019-07-16T21:39:36.038Z Hash: d3d791821fe06fdc45ec Time: 29724ms chunk {0} runtime.a5dd35324ddfd942bef1.js (runtime) 1.41 kB [entry] [rendered] chunk {1} main.5f13b498ec6976cdb0c7.js (main) 128 bytes [initial] [rendered] chunk {2} polyfills.cc3ea7a3070884bdee7e.js (polyfills) 130 bytes [initial] [rendered] chunk {3} styles.11812d4741fdf74faf07.css (styles) 20 kB [initial] [rendered]ERROR in src/app/home-main/practice-notes/practice-notes.page.html(4,70): : Property 'download' does not exist on type 'PracticeNotesPage'. src/app/home-main/practice-notes/checkpractice-notes/checkpractice-notes.page.html(3,69): : Property 'submitToBackEnd' does not exist on type 'CheckpracticeNotesPage'. src/app/home-main/practice-notes/checkpractice-notes/checkpractice-notes.page.html(4,72): : Property 'submitToBackEnd' does not exist on type 'CheckpracticeNotesPage'. src/app/me-main/daily-record/daily-record.page.html(23,105): : Property 'feeling' does not exist on type 'DailyRecordModel'. Did you mean 'felling'? src/app/me-main/daily-record/daily-record.page.html(23,105): : Property 'feeling' does not exist on type 'DailyRecordModel'. Did you mean 'felling'?[ERROR] An error occurred while running subprocess ng.ng run app:build:beta exited with exit code 1.Re-running this command with the --verbose flag may provide more information. -- 完成ionic build --configuration=beta? ? 三、本地與服務器部署不一致的原因:
? ? ? 1.在二、1.中的錯誤,經過兄弟項目的測試驗證表示沒問題(在此致謝金鵬大佬),二、2.中構建出錯了,可是Jenkins最后給的結果是成功,導致我們不知道代碼打包出錯
?? ? 2.相關工作記錄如下
解決:
? ? ? ? 1.在本地運行打包命令:
ng run app:build:beta? ? ? ? 2.解決打包后的報錯
? ? ? ? 3.將正確代碼推到git,執行Jenkins構建
? ? ? ? 4.驗證部署成功!
總結:
? ? 1.Jenkins所有項目構建都報的錯誤 和 是否有設置錯誤忽略的問題 已經交由Jenkins負責人解決
? ? 2.特別鳴謝:賀信、連迎迎、杜雨、程金鵬、楊江濤、李勇杰、張偉光(排名不分前后,特效應為LED放大標紅滾動循環播出),謝謝各位的幫助與指教!
?
總結
以上是生活随笔為你收集整理的【ionic】ionic代码利用Jenkins构建部署出错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 解决定位螺丝孔连接铜皮问题
- 下一篇: 大鼠原代肾小管上皮细胞培养扩增方案