github.com/hernad/nomad@v1.6.112/e2e/artifact/input/artifact_windows.nomad (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "windows" { 5 datacenters = ["dc1"] 6 type = "batch" 7 8 constraint { 9 attribute = "${attr.kernel.name}" 10 value = "windows" 11 } 12 13 group "rawexec" { 14 task "rawexec_file_default" { 15 artifact { 16 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 17 } 18 driver = "raw_exec" 19 config { 20 command = "powershell" 21 args = ["type", "local/go.mod"] 22 } 23 resources { 24 cpu = 16 25 memory = 32 26 disk = 64 27 } 28 } 29 30 task "rawexec_file_custom" { 31 artifact { 32 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 33 destination = "local/my/path" 34 } 35 driver = "raw_exec" 36 config { 37 command = "powershell" 38 args = ["type", "local/my/path/go.mod"] 39 } 40 resources { 41 cpu = 16 42 memory = 32 43 disk = 64 44 } 45 } 46 47 task "rawexec_zip_default" { 48 artifact { 49 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 50 } 51 driver = "raw_exec" 52 config { 53 command = "powershell" 54 args = ["type", "local/go-set-main/go.mod"] 55 } 56 resources { 57 cpu = 16 58 memory = 32 59 disk = 64 60 } 61 } 62 63 task "rawexec_zip_custom" { 64 artifact { 65 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 66 destination = "local/my/zip" 67 } 68 driver = "raw_exec" 69 config { 70 command = "powershell" 71 args = ["type", "local/my/zip/go-set-main/go.mod"] 72 } 73 resources { 74 cpu = 16 75 memory = 32 76 disk = 64 77 } 78 } 79 80 # TODO(shoenig) setup git in our Windows e2e client 81 # https://github.com/hernad/nomad/issues/15505 82 # task "rawexec_git_custom" { 83 # artifact { 84 # source = "git::https://github.com/hashicorp/go-set" 85 # destination = "local/repository" 86 # } 87 # driver = "raw_exec" 88 # config { 89 # command = "powershell" 90 # args = ["type", "local/repository/go.mod"] 91 # } 92 # resources { 93 # cpu = 16 94 # memory = 32 95 # disk = 64 96 # } 97 # } 98 } 99 }