[研究][BAT]從Jenkins拷貝 Fortify SCA 報告
2022-03-07
JenkinsFortifySCAReportCopy.bat
@echo off @REM D: @REM CD D:\FortifySCAReport net use /delete Q: net use Q: \\JenKinsServerIP\D$ 密碼 /USER:帳號 @REM 取得日期 @rem 其中 P0 代表「不滿 10 自動補零」的意思 FOR /F "tokens=1-4 delims=/ " %%a IN ("%date%") DO ( rem SET _MyDate=%%a%%b%%c%%d SET MyDate=%%a-%%b-%%c ) FOR /F "tokens=1-4 delims=: " %%a IN ("%time%") DO ( SET MyTime=%%a-%%b-%%c SET Hour=%%a if %%a == 0 ( SET Hour=0%%a) if %%a == 1 ( SET Hour=0%%a) if %%a == 2 ( SET Hour=0%%a) if %%a == 3 ( SET Hour=0%%a) if %%a == 4 ( SET Hour=0%%a) if %%a == 5 ( SET Hour=0%%a) if %%a == 6 ( SET Hour=0%%a) if %%a == 7 ( SET Hour=0%%a) if %%a == 8 ( SET Hour=0%%a) if %%a == 9 ( SET Hour=0%%a) SET Minute=%%b SET Second=%%c SET Second=%Time:~6,2% ) @SET MyDateTime2=%MyDate%-%Hour%-%Minute%-%Second% echo MyDateTime2 echo F | XCOPY Q:\Jenkins\workspace\Fortify_WebSolutionJob1\old.fpr D:\FortifySCAReport\WebSolutionJob1-%MyDateTime2%.fpr /Y /S echo F | XCOPY Q:\Jenkins\workspace\Fortify_WebSolutionJob2\old.fpr D:\FortifySCAReport\WebSolutionJob2-%MyDateTime2%.fpr /Y /S |
(完)
相關
[研究]Jenkins作業(Job)組態的Dependency-Track(DT)設定
https://shaurong.blogspot.com/2022/09/jenkinsjobdependency-trackdt.html
[研究]Git上傳、Jenkins自動編譯、發佈 ASP.NET WebForms方案/專案到目的網站根目錄
https://shaurong.blogspot.com/2022/09/gitjenkins-aspnet-webforms.html
[研究][ASP.NET]MSBuild 17.3.1 語法參數說明
https://shaurong.blogspot.com/2022/09/aspnetmsbuild-1731.html
[研究][BAT]從Jenkins拷貝 Fortify SCA 報告
https://shaurong.blogspot.com/2022/03/batjenkins-fortify-sca.html
[研究]Jenkins 找不到 .NET SDK 'Microsoft.NET.Sdk.Web'
https://shaurong.blogspot.com/2022/02/jenkins-net-sdk-microsoftnetsdkweb.html
[研究]Jenkins : error MSB4100 條件 必須評估為布林值
https://shaurong.blogspot.com/2022/02/jenkins-error-msb4100.html
[研究]Jenkins + Fortify SCA,因 Visual Studio 2019 升級 2022,變更 MSBuild 目錄
https://shaurong.blogspot.com/2022/01/jenkins-fortify-sca-visual-studio-2019.html
[研究]疑似 Fortify SCA 或 Jenkins 產生的殘檔
https://shaurong.blogspot.com/2021/11/fortify-sca-jenkins.html
[研究][Gitea + Jenkins + Fortify SCA]此專案參考這部電腦上所缺少的 NuGet 套件。請啟用 NuGet 套件還原
https://shaurong.blogspot.com/2021/08/gitea-jenkins-fortify-sca-nuget-nuget.html
[研究] OWASP Dependency-Track 4.2.2 第三方元件安全管理安裝 (Ubuntu 20.04.2 LTS x64)
https://shaurong.blogspot.com/2021/07/owasp-dependency-track-422-ubuntu-20042.html
[研究]Jenkins 2.289.2-1.1 stable 安裝(CentOS 8.4 x64)
https://shaurong.blogspot.com/2021/07/jenkins-22892-11-stable-centos-84-x64.html
[研究] Jenkins 建置失敗
https://shaurong.blogspot.com/2021/04/jenkins.html
[研究] Jenkins 2.190.3 舊主機搬移到新主機(Win2019)
https://shaurong.blogspot.com/2019/12/jenkins-21903-win2019.html
[研究] Jenkins 2.121.1 LTS + JDK 8 + Maven 3.5.3 安裝 (Windows 2016)
https://shaurong.blogspot.com/2018/06/jenkins-21211-lts-jdk-maven-windows-2016.html
[研究] Jenkins 2.121.1 LTS + JDK 安裝 (Windows 2016)
https://shaurong.blogspot.com/2018/06/jenkins-21211-lts-jdk-windows-2016.html
[研究] Jenkins 2.128 Weekly 安裝 (Windows 2016)
https://shaurong.blogspot.com/2018/06/jekins-2128-weekly-windows-2016.html
[研究] Jenkins 2.121.1 LTS 安裝 (Windows 2016)
https://shaurong.blogspot.com/2018/06/jekins-21211-lts-windows-2016.html
[研究] Jenkins 2.68.1-1 安裝 (CentOS 7.3 x64)
https://shaurong.blogspot.com/2017/07/jenkins-2681-1-centos-73-x64.html
[研究] Jenkins 1.635 安裝 (CentOS 7.1 x64)
https://shaurong.blogspot.com/2015/10/jenkins-1635-centos-71-x64.html
[研究] Jenkins 1.635 安裝 (Windows 2012 R2)
https://shaurong.blogspot.com/2015/10/jenkins-1635-windows-2012-r2.html
沒有留言:
張貼留言