Skip to content

Commit f1715e7

Browse files
committed
chore: for testing purposes
1 parent d901d22 commit f1715e7

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.ci/windows.groovy

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env groovy
22

3-
@Library('apm@current') _
3+
@Library('apm@test/7z-fallback') _
44

55
import groovy.transform.Field
66

@@ -353,12 +353,25 @@ def mageTargetWin(String context, String directory, String target) {
353353
}
354354
}
355355

356+
def compressToolsDetails() {
357+
bat(label: "isTarInstalled", script: 'tar --version >NULL', returnStatus: true)
358+
withEnv(["PATH+SYSTEM=C:\\Windows\\System32"]) {
359+
bat(label: 'isTarInstalled withEnv', script: 'tar --version >NULL', returnStatus: true)
360+
}
361+
bat(label: 'is7zInstalled', script: '7z >NULL', returnStatus: true)
362+
withEnv(["PATH+CHOCO=C:\\ProgramData\\chocolatey\\bin"]) {
363+
bat(label: 'is7zInstalled withEnv', script: '7z >NULL', returnStatus: true)
364+
}
365+
}
366+
356367
def mageTargetWin(String context, String directory, String target, String label) {
357368
return {
358369
log(level: 'INFO', text: "context=${context} directory=${directory} target=${target} os=${label}")
359370
def immutable = label.equals('windows-7-32-bit') ? 'windows-immutable-32-bit' : 'windows-immutable'
360371
node("${immutable} && ${label}"){
361372
withBeatsEnvWin() {
373+
// Only for the time being
374+
compressToolsDetails()
362375
whenTrue(params.debug) {
363376
dumpFilteredEnvironment()
364377
dumpMageWin()

0 commit comments

Comments
 (0)