updated start script
This commit is contained in:
parent
9f3db2cc48
commit
ebdda6fdc6
1 changed files with 14 additions and 5 deletions
|
@ -12,9 +12,18 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
$IMAGE="gcr.io/llvm-premerge-checks/agent-windows-jenkins"
|
# Pull and start the Docker container for a Windows agent.
|
||||||
|
# To setup a Windows agent see docs/playbooks.md
|
||||||
|
|
||||||
# check for new images on every start
|
$NAME="agent-windows-jenkins"
|
||||||
docker pull $IMAGE:latest
|
$IMAGE="gcr.io/llvm-premerge-checks/${NAME}"
|
||||||
docker run $IMAGE
|
|
||||||
docker run -v D:\:C:\ws -v C:\credentials:C:\credentials -e PARENT_HOSTNAME=$env:computername $IMAGE
|
docker pull ${IMAGE}:latest
|
||||||
|
docker stop ${NAME}
|
||||||
|
docker run `
|
||||||
|
-v D:\:C:\ws `
|
||||||
|
-v C:\credentials:C:\credentials `
|
||||||
|
-e PARENT_HOSTNAME=$env:computername `
|
||||||
|
--restart unless-stopped `
|
||||||
|
--name ${NAME} `
|
||||||
|
${IMAGE}
|
Loading…
Reference in a new issue