jenkins_api_client 1.4.5 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/jenkins_api_client.gemspec +15 -136
- data/lib/jenkins_api_client/version.rb +2 -2
- metadata +6 -180
- data/.gitignore +0 -41
- data/.jenkins.yml +0 -9
- data/.travis.yml +0 -15
- data/CHANGELOG.md +0 -391
- data/CONTRIBUTORS.md +0 -3
- data/Gemfile +0 -20
- data/LICENCE +0 -21
- data/README.md +0 -454
- data/Rakefile +0 -107
- data/Vagrantfile +0 -83
- data/config/login.yml.example +0 -27
- data/jenkins_api_client_class_diagram.png +0 -0
- data/scripts/login_with_irb.rb +0 -54
- data/scripts/login_with_pry.rb +0 -54
- data/spec/func_tests/client_spec.rb +0 -109
- data/spec/func_tests/job_spec.rb +0 -669
- data/spec/func_tests/node_spec.rb.pending +0 -217
- data/spec/func_tests/plugin_spec.rb +0 -148
- data/spec/func_tests/spec_helper.rb +0 -41
- data/spec/func_tests/system_spec.rb +0 -84
- data/spec/func_tests/user_spec.rb +0 -49
- data/spec/func_tests/view_spec.rb +0 -276
- data/spec/unit_tests/build_queue_spec.rb +0 -152
- data/spec/unit_tests/client_spec.rb +0 -471
- data/spec/unit_tests/fake_http_response.rb +0 -9
- data/spec/unit_tests/fixtures/files/available_plugins.json +0 -1
- data/spec/unit_tests/fixtures/files/computer_sample.xml +0 -17
- data/spec/unit_tests/fixtures/files/installed_plugins.json +0 -1
- data/spec/unit_tests/fixtures/files/job_sample.xml +0 -16
- data/spec/unit_tests/fixtures/files/updatable_plugins.json +0 -1
- data/spec/unit_tests/job_spec.rb +0 -783
- data/spec/unit_tests/node_spec.rb +0 -342
- data/spec/unit_tests/plugin_settings/colllection_spec.rb +0 -62
- data/spec/unit_tests/plugin_settings/hipchat_spec.rb +0 -44
- data/spec/unit_tests/plugin_settings/workspace_cleanup_spec.rb +0 -31
- data/spec/unit_tests/plugin_spec.rb +0 -165
- data/spec/unit_tests/spec_helper.rb +0 -19
- data/spec/unit_tests/system_spec.rb +0 -76
- data/spec/unit_tests/user_spec.rb +0 -144
- data/spec/unit_tests/view_spec.rb +0 -149
- data/travis/hudson.model.UpdateCenter.xml +0 -7
- data/travis/jenkins_config.xml +0 -63
- data/travis/jenkins_config_with_crumb.xml +0 -67
- data/travis/setup.sh +0 -23
- data/travis/setup_crumb.sh +0 -11
- data/travis/spec.yml +0 -14
- data/travis/user_config.xml +0 -29
data/travis/jenkins_config.xml
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
-
<hudson>
|
3
|
-
<disabledAdministrativeMonitors/>
|
4
|
-
<version>1.517</version>
|
5
|
-
<numExecutors>10</numExecutors>
|
6
|
-
<mode>NORMAL</mode>
|
7
|
-
<useSecurity>true</useSecurity>
|
8
|
-
<authorizationStrategy class="hudson.security.GlobalMatrixAuthorizationStrategy">
|
9
|
-
<permission>hudson.model.Computer.Configure:testuser</permission>
|
10
|
-
<permission>hudson.model.Computer.Connect:testuser</permission>
|
11
|
-
<permission>hudson.model.Computer.Create:testuser</permission>
|
12
|
-
<permission>hudson.model.Computer.Delete:testuser</permission>
|
13
|
-
<permission>hudson.model.Computer.Disconnect:testuser</permission>
|
14
|
-
<permission>hudson.model.Hudson.Administer:testuser</permission>
|
15
|
-
<permission>hudson.model.Hudson.ConfigureUpdateCenter:testuser</permission>
|
16
|
-
<permission>hudson.model.Hudson.Read:testuser</permission>
|
17
|
-
<permission>hudson.model.Hudson.RunScripts:testuser</permission>
|
18
|
-
<permission>hudson.model.Hudson.UploadPlugins:testuser</permission>
|
19
|
-
<permission>hudson.model.Item.Build:testuser</permission>
|
20
|
-
<permission>hudson.model.Item.Cancel:testuser</permission>
|
21
|
-
<permission>hudson.model.Item.Configure:testuser</permission>
|
22
|
-
<permission>hudson.model.Item.Create:testuser</permission>
|
23
|
-
<permission>hudson.model.Item.Delete:testuser</permission>
|
24
|
-
<permission>hudson.model.Item.Discover:testuser</permission>
|
25
|
-
<permission>hudson.model.Item.Read:testuser</permission>
|
26
|
-
<permission>hudson.model.Item.Workspace:testuser</permission>
|
27
|
-
<permission>hudson.model.View.Configure:testuser</permission>
|
28
|
-
<permission>hudson.model.View.Create:testuser</permission>
|
29
|
-
<permission>hudson.model.View.Delete:testuser</permission>
|
30
|
-
<permission>hudson.model.View.Read:testuser</permission>
|
31
|
-
</authorizationStrategy>
|
32
|
-
<securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
|
33
|
-
<disableSignup>false</disableSignup>
|
34
|
-
<enableCaptcha>false</enableCaptcha>
|
35
|
-
</securityRealm>
|
36
|
-
<projectNamingStrategy class="jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy"/>
|
37
|
-
<workspaceDir>${JENKINS_HOME}/workspace/${ITEM_FULLNAME}</workspaceDir>
|
38
|
-
<buildsDir>${ITEM_ROOTDIR}/builds</buildsDir>
|
39
|
-
<markupFormatter class="hudson.markup.RawHtmlMarkupFormatter">
|
40
|
-
<disableSyntaxHighlighting>false</disableSyntaxHighlighting>
|
41
|
-
</markupFormatter>
|
42
|
-
<jdks/>
|
43
|
-
<viewsTabBar class="hudson.views.DefaultViewsTabBar"/>
|
44
|
-
<myViewsTabBar class="hudson.views.DefaultMyViewsTabBar"/>
|
45
|
-
<clouds/>
|
46
|
-
<slaves/>
|
47
|
-
<quietPeriod>5</quietPeriod>
|
48
|
-
<scmCheckoutRetryCount>0</scmCheckoutRetryCount>
|
49
|
-
<views>
|
50
|
-
<hudson.model.AllView>
|
51
|
-
<owner class="hudson" reference="../../.."/>
|
52
|
-
<name>All</name>
|
53
|
-
<filterExecutors>false</filterExecutors>
|
54
|
-
<filterQueue>false</filterQueue>
|
55
|
-
<properties class="hudson.model.View$PropertyList"/>
|
56
|
-
</hudson.model.AllView>
|
57
|
-
</views>
|
58
|
-
<primaryView>All</primaryView>
|
59
|
-
<slaveAgentPort>0</slaveAgentPort>
|
60
|
-
<label></label>
|
61
|
-
<nodeProperties/>
|
62
|
-
<globalNodeProperties/>
|
63
|
-
</hudson>
|
@@ -1,67 +0,0 @@
|
|
1
|
-
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
-
<hudson>
|
3
|
-
<disabledAdministrativeMonitors/>
|
4
|
-
<version>1.517</version>
|
5
|
-
<numExecutors>10</numExecutors>
|
6
|
-
<mode>NORMAL</mode>
|
7
|
-
<useSecurity>true</useSecurity>
|
8
|
-
<authorizationStrategy class="hudson.security.GlobalMatrixAuthorizationStrategy">
|
9
|
-
<permission>hudson.model.Computer.Configure:testuser</permission>
|
10
|
-
<permission>hudson.model.Computer.Connect:testuser</permission>
|
11
|
-
<permission>hudson.model.Computer.Create:testuser</permission>
|
12
|
-
<permission>hudson.model.Computer.Delete:testuser</permission>
|
13
|
-
<permission>hudson.model.Computer.Disconnect:testuser</permission>
|
14
|
-
<permission>hudson.model.Hudson.Administer:testuser</permission>
|
15
|
-
<permission>hudson.model.Hudson.ConfigureUpdateCenter:testuser</permission>
|
16
|
-
<permission>hudson.model.Hudson.Read:testuser</permission>
|
17
|
-
<permission>hudson.model.Hudson.RunScripts:testuser</permission>
|
18
|
-
<permission>hudson.model.Hudson.UploadPlugins:testuser</permission>
|
19
|
-
<permission>hudson.model.Item.Build:testuser</permission>
|
20
|
-
<permission>hudson.model.Item.Cancel:testuser</permission>
|
21
|
-
<permission>hudson.model.Item.Configure:testuser</permission>
|
22
|
-
<permission>hudson.model.Item.Create:testuser</permission>
|
23
|
-
<permission>hudson.model.Item.Delete:testuser</permission>
|
24
|
-
<permission>hudson.model.Item.Discover:testuser</permission>
|
25
|
-
<permission>hudson.model.Item.Read:testuser</permission>
|
26
|
-
<permission>hudson.model.Item.Workspace:testuser</permission>
|
27
|
-
<permission>hudson.model.View.Configure:testuser</permission>
|
28
|
-
<permission>hudson.model.View.Create:testuser</permission>
|
29
|
-
<permission>hudson.model.View.Delete:testuser</permission>
|
30
|
-
<permission>hudson.model.View.Read:testuser</permission>
|
31
|
-
</authorizationStrategy>
|
32
|
-
<securityRealm class="hudson.security.HudsonPrivateSecurityRealm">
|
33
|
-
<disableSignup>false</disableSignup>
|
34
|
-
<enableCaptcha>false</enableCaptcha>
|
35
|
-
</securityRealm>
|
36
|
-
<projectNamingStrategy class="jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy"/>
|
37
|
-
<workspaceDir>${JENKINS_HOME}/workspace/${ITEM_FULLNAME}</workspaceDir>
|
38
|
-
<buildsDir>${ITEM_ROOTDIR}/builds</buildsDir>
|
39
|
-
<markupFormatter class="hudson.markup.RawHtmlMarkupFormatter">
|
40
|
-
<disableSyntaxHighlighting>false</disableSyntaxHighlighting>
|
41
|
-
</markupFormatter>
|
42
|
-
<jdks/>
|
43
|
-
<viewsTabBar class="hudson.views.DefaultViewsTabBar"/>
|
44
|
-
<myViewsTabBar class="hudson.views.DefaultMyViewsTabBar"/>
|
45
|
-
<clouds/>
|
46
|
-
<slaves/>
|
47
|
-
<quietPeriod>5</quietPeriod>
|
48
|
-
<scmCheckoutRetryCount>0</scmCheckoutRetryCount>
|
49
|
-
<views>
|
50
|
-
<hudson.model.AllView>
|
51
|
-
<owner class="hudson" reference="../../.."/>
|
52
|
-
<name>All</name>
|
53
|
-
<filterExecutors>false</filterExecutors>
|
54
|
-
<filterQueue>false</filterQueue>
|
55
|
-
<properties class="hudson.model.View$PropertyList"/>
|
56
|
-
</hudson.model.AllView>
|
57
|
-
</views>
|
58
|
-
<primaryView>All</primaryView>
|
59
|
-
<slaveAgentPort>0</slaveAgentPort>
|
60
|
-
<label></label>
|
61
|
-
<crumbIssuer class="hudson.security.csrf.DefaultCrumbIssuer">
|
62
|
-
<excludeClientIPFromCrumb>false</excludeClientIPFromCrumb>
|
63
|
-
<PROXY__HEADER>X-Forwarded-For</PROXY__HEADER>
|
64
|
-
</crumbIssuer>
|
65
|
-
<nodeProperties/>
|
66
|
-
<globalNodeProperties/>
|
67
|
-
</hudson>
|
data/travis/setup.sh
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
#!/bin/bash -x
|
2
|
-
|
3
|
-
# Install Jenkins
|
4
|
-
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
|
5
|
-
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
|
6
|
-
sudo apt-get update -qq
|
7
|
-
sudo apt-get install -qq jenkins
|
8
|
-
|
9
|
-
# Configure Jenkins
|
10
|
-
sudo service jenkins stop
|
11
|
-
sudo cp -f travis/jenkins_config.xml /var/lib/jenkins/config.xml
|
12
|
-
sudo cp -f travis/hudson.model.UpdateCenter.xml /var/lib/jenkins/hudson.model.UpdateCenter.xml
|
13
|
-
sudo mkdir -p /var/lib/jenkins/users/testuser
|
14
|
-
sudo cp -f travis/user_config.xml /var/lib/jenkins/users/testuser/config.xml
|
15
|
-
sudo service jenkins start
|
16
|
-
# Jenkins takes a bit to get dressed up and become ready, so be patient...
|
17
|
-
sleep 60
|
18
|
-
cat /var/log/jenkins/jenkins.log
|
19
|
-
echo `sudo service jenkins status`
|
20
|
-
|
21
|
-
# Create the credentials file used by functional tests
|
22
|
-
sudo mkdir ~/.jenkins_api_client
|
23
|
-
sudo cp -f travis/spec.yml ~/.jenkins_api_client/spec.yml
|
data/travis/setup_crumb.sh
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
# Replace jenkins configuration file with crumb enabled
|
4
|
-
sudo cp -f travis/jenkins_config_with_crumb.xml /var/lib/jenkins/config.xml
|
5
|
-
# Restart jenkins for the new configuration to take effect
|
6
|
-
sudo service jenkins restart
|
7
|
-
# Jenkins takes a bit to get ready - so wait
|
8
|
-
sleep 60
|
9
|
-
echo `sudo service jenkins status`
|
10
|
-
|
11
|
-
echo "Crumbs support is enabled on jenkins"
|
data/travis/spec.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# Test credentials
|
2
|
-
|
3
|
-
# Server IP Address
|
4
|
-
:server_ip: 127.0.0.1
|
5
|
-
# Username
|
6
|
-
:username: testuser
|
7
|
-
# Password
|
8
|
-
:password: testpassword
|
9
|
-
# Timeout in seconds
|
10
|
-
:timeout: 300
|
11
|
-
# Log location
|
12
|
-
:log_location: "jenkins_api_client.log"
|
13
|
-
# Log level (Logger::DEBUG)
|
14
|
-
:log_level: 0
|
data/travis/user_config.xml
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
-
<user>
|
3
|
-
<fullName>Test User</fullName>
|
4
|
-
<properties>
|
5
|
-
<jenkins.security.ApiTokenProperty>
|
6
|
-
<apiToken></apiToken>
|
7
|
-
</jenkins.security.ApiTokenProperty>
|
8
|
-
<hudson.model.MyViewsProperty>
|
9
|
-
<views>
|
10
|
-
<hudson.model.AllView>
|
11
|
-
<owner class="hudson.model.MyViewsProperty" reference="../../.."/>
|
12
|
-
<name>All</name>
|
13
|
-
<filterExecutors>false</filterExecutors>
|
14
|
-
<filterQueue>false</filterQueue>
|
15
|
-
<properties class="hudson.model.View$PropertyList"/>
|
16
|
-
</hudson.model.AllView>
|
17
|
-
</views>
|
18
|
-
</hudson.model.MyViewsProperty>
|
19
|
-
<hudson.search.UserSearchProperty>
|
20
|
-
<insensitiveSearch>false</insensitiveSearch>
|
21
|
-
</hudson.search.UserSearchProperty>
|
22
|
-
<hudson.security.HudsonPrivateSecurityRealm_-Details>
|
23
|
-
<passwordHash>#jbcrypt:$2a$10$L051Dt2g4qlq0ABI8PtGIurtvuKVU7HcXAgwUAvy8vMA/CPXDLEdm</passwordHash>
|
24
|
-
</hudson.security.HudsonPrivateSecurityRealm_-Details>
|
25
|
-
<hudson.tasks.Mailer_-UserProperty>
|
26
|
-
<emailAddress>testuser@testdomain.com</emailAddress>
|
27
|
-
</hudson.tasks.Mailer_-UserProperty>
|
28
|
-
</properties>
|
29
|
-
</user>
|