@@ -298,16 +298,6 @@ resources:
298298 file : main
299299 initial_version : " ((BASE_OS_VERSION)).1.0"
300300
301- # type: pool
302- - name : nimbus-ips
303- type : pool
304- tags : [*internal_worker_tag]
305- source :
306- branch : master
307- pool : nimbus-ips
308- private_key : ((github_deploy_key_Bosh-Windows-Locks.private_key))
309- uri :
[email protected] :TNZ/Bosh-Windows-Locks.git 310-
311301# type: s3
312302- name : blobstore-s3-cli
313303 type : s3
@@ -810,10 +800,6 @@ jobs:
810800 - get : bosh-agent-release
811801 passed : [build]
812802 - get : ovftool
813- - put : nimbus-ips
814- inputs : detect
815- params : { acquire: true }
816- tags : [*internal_worker_tag]
817803 - get : blobstore-dav-cli
818804 - get : blobstore-s3-cli
819805 - get : blobstore-gcs-cli
@@ -856,6 +842,23 @@ jobs:
856842 - task : zip-files
857843 file : bosh-windows-stemcell-builder-ci/ci/tasks/zip-files/task.yml
858844 image : bosh-windows-stemcell-builder-ci-image
845+ - load_var : integration-vm-name
846+ file : integration-vm-name/name
847+ format : trim
848+ reveal : true
849+ - task : fetch-integration-vm-ip
850+ file : bosh-windows-stemcell-builder-ci/ci/tasks/fetch-vm-ip/task.yml
851+ image : bosh-windows-stemcell-builder-ci-image
852+ tags : [ windows-nimbus ]
853+ params :
854+ GOVC_URL : ((nimbus_windows-demo_auth_url))
855+ VCENTER_BASE_URL : ((nimbus_windows-demo_base_url))
856+ VCENTER_VM_FOLDER : /dc0/vm/bosh-windows-ci-vms-and-templates
857+ VM_NAME : ((.:integration-vm-name))
858+ - load_var : integration-vm-ip
859+ file : vm-ip/ip
860+ format : trim
861+ reveal : true
859862 - task : integration
860863 tags : [windows-nimbus]
861864 file : bosh-windows-stemcell-builder-ci/ci/tasks/test-integration-stembuild-windows/task.yml
@@ -879,6 +882,7 @@ jobs:
879882 VM_PASSWORD : ((stembuild_vm_user.password))
880883 PACKAGE_TEST_VM_NAME : stembuild-package-integration-tests-base-vm
881884 OS_LINE : *windows_os_line
885+ TARGET_VM_IP : ((.:integration-vm-ip))
882886 - task : build
883887 tags : [windows-nimbus]
884888 file : bosh-windows-stemcell-builder-ci/ci/tasks/build-stembuild-windows/task.yml
@@ -896,11 +900,6 @@ jobs:
896900 params :
897901 CLONE_FOLDER : /dc0/vm/bosh-windows-ci-vms-and-templates
898902 VCENTER_ADMIN_CREDENTIAL_URL : ((nimbus_windows-demo_auth_url))
899- ensure :
900- put : nimbus-ips
901- inputs : detect
902- params : { release: nimbus-ips }
903- tags : [*internal_worker_tag]
904903
905904- name : stembuild-linux
906905 serial : true
@@ -929,10 +928,6 @@ jobs:
929928 - get : bosh-agent-release
930929 passed : [build]
931930 - get : ovftool
932- - put : nimbus-ips
933- inputs : detect
934- params : { acquire: true }
935- tags : [*internal_worker_tag]
936931 - get : blobstore-dav-cli
937932 - get : blobstore-s3-cli
938933 - get : blobstore-gcs-cli
@@ -975,6 +970,23 @@ jobs:
975970 - task : zip-files
976971 file : bosh-windows-stemcell-builder-ci/ci/tasks/zip-files/task.yml
977972 image : bosh-windows-stemcell-builder-ci-image
973+ - load_var : integration-vm-name
974+ file : integration-vm-name/name
975+ format : trim
976+ reveal : true
977+ - task : fetch-integration-vm-ip
978+ file : bosh-windows-stemcell-builder-ci/ci/tasks/fetch-vm-ip/task.yml
979+ image : bosh-windows-stemcell-builder-ci-image
980+ tags : [ windows-nimbus ]
981+ params :
982+ GOVC_URL : ((nimbus_windows-demo_auth_url))
983+ VCENTER_BASE_URL : ((nimbus_windows-demo_base_url))
984+ VCENTER_VM_FOLDER : /dc0/vm/bosh-windows-ci-vms-and-templates
985+ VM_NAME : ((.:integration-vm-name))
986+ - load_var : integration-vm-ip
987+ file : vm-ip/ip
988+ format : trim
989+ reveal : true
978990 - task : integration
979991 file : bosh-windows-stemcell-builder-ci/ci/tasks/test-integration-stembuild-linux/task.yml
980992 image : bosh-windows-stemcell-builder-ci-image
@@ -999,6 +1011,7 @@ jobs:
9991011 VM_PASSWORD : ((stembuild_vm_user.password))
10001012 PACKAGE_TEST_VM_NAME : stembuild-package-integration-tests-base-vm
10011013 OS_LINE : *windows_os_line
1014+ TARGET_VM_IP : ((.:integration-vm-ip))
10021015 - task : build
10031016 file : bosh-windows-stemcell-builder-ci/ci/tasks/build-stembuild-linux/task.yml
10041017 image : bosh-windows-stemcell-builder-ci-image
@@ -1016,11 +1029,6 @@ jobs:
10161029 params :
10171030 CLONE_FOLDER : /dc0/vm/bosh-windows-ci-vms-and-templates
10181031 VCENTER_ADMIN_CREDENTIAL_URL : ((nimbus_windows-demo_auth_url))
1019- ensure :
1020- put : nimbus-ips
1021- inputs : detect
1022- params : { release: nimbus-ips }
1023- tags : [*internal_worker_tag]
10241032
10251033- name : create-stembuild-linux-stemcell
10261034 serial : true
@@ -1074,12 +1082,12 @@ jobs:
10741082 image : bosh-windows-stemcell-builder-ci-image
10751083 tags : [windows-nimbus]
10761084 params :
1085+ GOVC_URL : ((nimbus_windows-demo_auth_url))
10771086 VCENTER_BASE_URL : ((nimbus_windows-demo_base_url))
10781087 VCENTER_USERNAME : ((nimbus_windows-demo_user.username))
10791088 VCENTER_PASSWORD : ((nimbus_windows-demo_user.password))
10801089 VCENTER_VM_FOLDER : /dc0/vm/bosh-windows-ci-vms-and-templates
10811090 STEMBUILD_BASE_VM_NAME : windows-server-2019-base-vm-linux
1082- STEMBUILD_BASE_VM_IP : 192.168.111.31
10831091 STEMBUILD_BASE_VM_USERNAME : ((stembuild_vm_user.username))
10841092 STEMBUILD_BASE_VM_PASSWORD : ((stembuild_vm_user.password))
10851093 - task : run-stembuild-package
@@ -1232,6 +1240,19 @@ jobs:
12321240 DATACENTER : dc0
12331241 VM_TO_SNAPSHOT : /dc0/vm/bosh-windows-ci-vms-and-templates/windows-server-2019-base-vm-windows
12341242 SNAPSHOT_NAME : " stembuild-ready-power-on"
1243+ - task : fetch-vm-ip
1244+ file : bosh-windows-stemcell-builder-ci/ci/tasks/fetch-vm-ip/task.yml
1245+ image : bosh-windows-stemcell-builder-ci-image
1246+ tags : [ windows-nimbus ]
1247+ params :
1248+ GOVC_URL : ((nimbus_windows-demo_auth_url))
1249+ VCENTER_BASE_URL : ((nimbus_windows-demo_base_url))
1250+ VCENTER_VM_FOLDER : /dc0/vm/bosh-windows-ci-vms-and-templates
1251+ VM_NAME : windows-server-2019-base-vm-windows
1252+ - load_var : ip
1253+ file : vm-ip/ip
1254+ format : trim
1255+ reveal : true
12351256 - task : run-stembuild-construct
12361257 file : bosh-windows-stemcell-builder-ci/ci/tasks/run-construct-stembuild-windows/task.yml
12371258 tags : [windows-nimbus]
@@ -1241,7 +1262,7 @@ jobs:
12411262 VCENTER_PASSWORD : ((nimbus_windows-demo_user.password))
12421263 VCENTER_VM_FOLDER : /dc0/vm/bosh-windows-ci-vms-and-templates
12431264 STEMBUILD_BASE_VM_NAME : windows-server-2019-base-vm-windows
1244- STEMBUILD_BASE_VM_IP : 192.168.111.32
1265+ STEMBUILD_BASE_VM_IP : ((.:ip))
12451266 STEMBUILD_BASE_VM_USERNAME : ((stembuild_vm_user.username))
12461267 STEMBUILD_BASE_VM_PASSWORD : ((stembuild_vm_user.password))
12471268 - task : run-stembuild-package
0 commit comments