Skip to content

Instantly share code, notes, and snippets.

View carpnick's full-sized avatar

Nick Carpenter carpnick

View GitHub Profile
@carpnick
carpnick / Custom Nuget.exe
Last active September 30, 2019 17:29
Nuget Issues
Restore completed in 96.96 ms for C:\temp\Eliza-Eliza.Sample.VS2017.MSI\Utilitylib.unittests\Utilitylib.unittests.csproj.
Project RuntimeKeys:
win
win-x64
win-x86
LockFileRuntimes :
win
win-x64
win-x86
require 'winrm'
require 'winrm-s'
@host="localhost"
@port="5985"
url = "#{@host}:#{@port}/wsman"
scheme="http"
@endpoint = "#{scheme}://#{url}"
opts = Hash.new
"10.80.14.231 [2015-10-22T16:42:12-04:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
10.80.14.231 [2015-10-22T16:42:12-04:00] FATAL: NoMethodError: undefined method `run_id' for nil:NilClass
Doing old-style registration with the validation key at C:/code/chef/chef-devqa/mark/.chef/../mark-validator.pem...
Delete your validation key in order to use your user credentials instead
Remote node responded after 0.09 minutes.
Bootstrapping Chef on 10.80.14.231
ERROR: Bootstrap command returned 1"
{"eis_lib_chefcore":{"1.0.5":{"location_type":"opscode","location_path":"http://supermarket.epnet.com/api/v1","download_url":"http://supermarket.epnet.com/api/v1/cookbooks/eis_lib_chefcore/versions/1.0.5/download","dependencies":{"windows":"~> 1.34"}},"1.2.2":{"location_type":"opscode","location_path":"http://supermarket.epnet.com/api/v1","download_url":"http://supermarket.epnet.com/api/v1/cookbooks/eis_lib_chefcore/versions/1.2.2/download","dependencies":{"windows":"~> 1.34"}},"1.2.0":{"location_type":"opscode","location_path":"http://supermarket.epnet.com/api/v1","download_url":"http://supermarket.epnet.com/api/v1/cookbooks/eis_lib_chefcore/versions/1.2.0/download","dependencies":{"windows":"~> 1.34"}},"2.0.2":{"location_type":"opscode","location_path":"http://supermarket.epnet.com/api/v1","download_url":"http://supermarket.epnet.com/api/v1/cookbooks/eis_lib_chefcore/versions/2.0.2/download","dependencies":{"chef_handler":"~> 1.1"}},"2.0.6":{"location_type":"opscode","location_path":"http://supermarket.epn
DEPENDENCIES
app_edsapi_console
path: ../app_edsapi_console
app_edsapi_service
path: ../app_edsapi_service
role_win_edsapi
path: .
metadata: true
GRAPH
10.80.10.35 Error executing action `create` on resource 'jenkins_jnlp_slave[adapt-lin-s1]'
10.80.10.35 ================================================================================
10.80.10.35
10.80.10.35 Mixlib::ShellOut::ShellCommandFailed
10.80.10.35 ------------------------------------
10.80.10.35 Expected process to exit with [0], but received '255'
10.80.10.35 ---- Begin output of "java" -jar "/var/chef/cache/jenkins-cli.jar" -s http://10.80.10.30:8080 -i "/var/chef/cache/jenkins-key" groovy
/tmp/groovy20150901-21724-1de50hn ----
10.80.10.35 STDOUT:
10.80.10.35 STDERR: java.lang.NullPointerException
import hudson.model.*
import hudson.slaves.*
import jenkins.model.*
import jenkins.slaves.*
slave = Jenkins.instance.getNode('adapt-lin-s1') as Slave
if(slave == null) {
return null
}
C:\code\Chef\ChefDevServer\brendon2\cookbooks\eis_lib_win_perftap>eisprov client
Finding node based on IP
Getting IP Address from active VM File
Node Searchable in Chef Server yet via ipaddress:10.80.9.72?
Running 12.0 : C:/code/Chef/ChefDevServer/brendon2/.chef/knife.rb
Searchable - returning node
Getting IP Address from active VM File
Command: knife winrm "ipaddress:10.80.9.72" -a ipaddress -x Administrator -P Ebsco!!! "C:\eis-chef.exe -F min -l debug"
-------------------------------------------------------------------
10.80.9.72 Waiting for singular mutex to start Chef run
include_recipe "git::default"
case node['platform_family']
when 'debian'
include_recipe 'jenkins::java'
when 'rhel'
include_recipe 'jenkins::java'
when 'windows'
node.default['java']['windows']['url']='http://myinternalrepo.foo.bar/jdk-8u31-windows-x64.exe'
node.default['java']['install_flavor'] = "windows"