Skip to content

Commit

Permalink
Correct use of Powershell in Jenkins pipelines
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
lindluni authored Jul 25, 2023
1 parent 0724644 commit 2573ac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/jenkins/windows/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pipeline {
withCredentials([string(credentialsId: 'github-token', variable: 'TOKEN')]) {
ExecuteCodeQL('department-of-veterans-affairs', 'codeql-tools', env.GIT_BRANCH, 'javascript', '', env.TOKEN, true)
}
sh "mv codeql-scan-results-javascript.csv codeql-scan-results-javascript-windows.csv"
powershell "Rename-Item -Path codeql-scan-results-javascript.csv -NewName codeql-scan-results-javascript-windows.csv"
archiveArtifacts artifacts: 'codeql-scan-results-javascript-windows.csv', fingerprint: true
}
}
Expand All @@ -24,7 +24,7 @@ pipeline {
withCredentials([string(credentialsId: 'github-token', variable: 'TOKEN')]) {
ExecuteCodeQL('department-of-veterans-affairs', 'codeql-tools', env.GIT_BRANCH, 'javascript', '', env.TOKEN, true)
}
sh "mv codeql-scan-results-javascript.csv codeql-scan-results-javascript-windows-subdir.csv"
powershell "Rename-Item -Path codeql-scan-results-javascript.csv -NewName codeql-scan-results-javascript-windows-subdir.csv"
archiveArtifacts artifacts: 'codeql-scan-results-javascript-windows-subdir.csv', fingerprint: true
}
}
Expand Down

0 comments on commit 2573ac0

Please sign in to comment.