ptoma98 / skytap-cloud-plugin

Repository for Release 2 of the Skytap Plugin
0 stars 0 forks source link

Create Published Service action not evaluating Jenkins Variables in parameters #11

Closed tjmilligan closed 10 years ago

tjmilligan commented 10 years ago

Jenkins variables (e.g. $BUILD_NUMBER) in action parameters are not being evaluated.

Step is defined as pictured: cps-eval-err1

Build log indicates that all was successful:


Create Published Service

Expanding environment variable ... Create-Publish-Service-Config-Test-$BUILD_NUMBER=>Create-Publish-Service-Config-Test-10 File: Create-Publish-Service-Config-Test-10 was specified without a path. Defaulting path to Jenkins workspace. Expanding environment variable ... ${WORKSPACE}=>/var/lib/jenkins/jobs/Test-Create-Published-Service/workspace User provided file: /var/lib/jenkins/jobs/Test-Create-Published-Service/workspace/Create-Publish-Service-Config-Test-10 Building request url ... HTTP GET Request: GET https://cloud.skytap.com/configurations/1487696/vms HTTP/1.1 2014-01-31:07-28-46 Executing Request: GET https://cloud.skytap.com/configurations/1487696/vms HTTP/1.1 HTTP/1.1 200 OK Iterating through vm array to match name: Jazz Team Server 4.0.5 Trial {"id":"2606906","name":"Jazz Team Server 4.0.5 Trial","runstate":"stopped","hardware":{"cpus":2,"ram":3072,"svms":3,"guestOS":"centos-64","max_cpus":8,"min_ram":256,"max_ram":32768,"vnc_keymap":null,"uuid":null,"disks":[{"id":"disk-1024902-2487464-scsi-0-0","size":20480,"type":"SCSI","controller":"0","lun":"0"}],"storage":20480,"upgradable":false,"instance_type":null},"error":false,"asset_id":null,"interfaces":[{"id":"nic-1024902-2487464-0","ip":"10.0.0.1","hostname":"host1","mac":"00:50:56:0D:FE:90","services_count":0,"services":[],"public_ips_count":0,"public_ips":[],"status":"Powered off","vm_id":"2606906","vm_name":"Jazz Team Server 4.0.5 Trial","network_id":"1029514","network_type":"automatic","network_name":"Default Network","network_subnet":"10.0.0.0/24","nic_type":"e1000"}],"notes":[],"labels":[],"credentials":[{"text":"skytap / ChangeMe!","id":"1868214"},{"text":"root / ChangeMe!","id":"1868216"},{"text":"Jazz Admin: rtc_admin / ChangeMe!","id":"1868218"}],"desktop_resizable":true,"local_mouse_cursor":true,"maintenance_lock_engaged":false,"region_backend":"skytap","can_change_object_state":true,"configuration_url":"https://cloud.skytap.com/configurations/1487696"} Found VM with name: Jazz Team Server 4.0.5 Trial Name matched. Retrieving vm id. VM ID: 2606906 Building request url ... Request URL: https://cloud.skytap.com/configurations/1487696/vms/2606906 HTTP GET Request: GET https://cloud.skytap.com/configurations/1487696/vms/2606906 HTTP/1.1 2014-01-31:07-28-46 Executing Request: GET https://cloud.skytap.com/configurations/1487696/vms/2606906 HTTP/1.1 HTTP/1.1 200 OK Searching configuration's interfaces for interface with network name: Default Network Network Name: Default Network Network Name Matched. Interface ID: nic-1024902-2487464-0 Building request url ... HTTP POST Request: POST https://cloud.skytap.com/configurations/1487696/vms/2606906/interfaces/nic-1024902-2487464-0/services?port=9443 HTTP/1.1 2014-01-31:07-28-47 Executing Request: POST https://cloud.skytap.com/configurations/1487696/vms/2606906/interfaces/nic-1024902-2487464-0/services?port=9443 HTTP/1.1 HTTP/1.1 200 OK {"external_ip":"services-uswest.skytap.com","internal_port":9443,"external_port":26131,"id":"9443"} New service published on interface nic-1024902-2487464-0, port 9443 File: New-Service-$BUILD_NUMBER was specified without a path. Defaulting path to Jenkins workspace. Expanding environment variable ... ${WORKSPACE}=>/var/lib/jenkins/jobs/Test-Create-Published-Service/workspace Outputting service output string: services-uswest.skytap.com:26131 to file: /var/lib/jenkins/jobs/Test-Create-Published-Service/workspace/New-Service-$BUILD_NUMBER

However a review of the workspace contents reveals this:

cps-eval-err2