Project

Profile

Help

Task #7981

Pull-request comments for #7956 #7957 #7378

Added by Mark Zaslavskiy about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Code review tasks
Sprint/Milestone:
Start date:
22.02.2017
Due date:
% Done:

100%

Estimated time:
1:00 h
Target branch:
Test scenario:

https://github.com/OSLL/mdbci/tree/7981_refactoring_from_comments
https://github.com/OSLL/mdbci/pull/358

https://github.com/mariadb-corporation/maxscale-jenkins-jobs/tree/7981_refactoring_from_comments
https://github.com/mariadb-corporation/maxscale-jenkins-jobs/pull/151

# 1. Run:
./scripts/jenkins_cli/create_view.sh -s http://maxscale-jenkins.mariadb.com -p 8090 -v testViewFor7981 -j 7262_matrix1

#Results: output
Success: view - 'testViewFor7981' has been created
Success: job - '7262_matrix' has been added to view - 'testViewFor7981'

# At http://maxscale-jenkins.mariadb.com:8090/view/testViewFor7981/ must be a job.

# 2. Run:
./scripts/jenkins_cli/create_view.sh -s http://maxscale-jenkins.mariadb.com -p 8090 -v testViewFor7981 -j 7262_matrix1

#Results:
ERROR: View 'testViewFor7981' already exists
Error: view - 'testViewFor7981' creation failed!

# 3. Run:
./scripts/jenkins_cli/create_view.sh -s http://maxscale-jenkins.mariadb.com -p 8090 -v testViewFor7981_1 -j 7262_matrix1

#Results:
Success: view - 'testViewFor7981_1' has been created
Error: job - '7262_matrix1' adding failed!

# At http://maxscale-jenkins.mariadb.com:8090/view/testViewFor7981_1/ you can see empty view.

#4 Install plugin test
Create file plugins with next line: powershell 1.3. Before starting script ensure it's not installed(restart Jenkins and check it's not installed). Then run script:
vagranttest@maxscale-jenkins:~/kaluzny/mdbci$ ./scripts/jenkins_cli/install_plugins.sh -s http://maxscale-jenkins.mariadb.com -p 8090 -f plugins
Plugin powershell 1.3 NOT installed, installing...
Installing a plugin from http://mirrors.jenkins-ci.org/plugins/powershell/1.3/powershell.hpi
Ok

All jenkins plugins installed from file plugins

After script finished restart Jenkins check if plugin installed(should be installed).

If you run script again it should say that plugin already installed.


History

#1 Updated by Mark Zaslavskiy about 4 years ago

  • Subject changed from Pull-request comments for #7956 #7957 to Pull-request comments for #7956 #7957 #7378
  • Description updated (diff)

#2 Updated by Mark Zaslavskiy about 4 years ago

  • Assignee changed from Alexander Kaluzhny to Ilfat Kinyaev

#3 Updated by Ilfat Kinyaev about 4 years ago

  • Estimated time set to 1:00 h

#4 Updated by Ilfat Kinyaev about 4 years ago

  • Status changed from New to Active / In progress

#5 Updated by Ilfat Kinyaev about 4 years ago

  • % Done changed from 0 to 20
  • Test scenario updated (diff)

#6 Updated by Ilfat Kinyaev about 4 years ago

  • Test scenario updated (diff)

#7 Updated by Ilfat Kinyaev about 4 years ago

  • % Done changed from 20 to 90
  • Test scenario updated (diff)

#8 Updated by Ilfat Kinyaev about 4 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Ilfat Kinyaev to Mark Zaslavskiy
  • % Done changed from 90 to 100

#9 Updated by Mark Zaslavskiy about 4 years ago

  • Assignee changed from Mark Zaslavskiy to Alexander Kaluzhny

#10 Updated by Alexander Kaluzhny about 4 years ago

  • Status changed from Review to New
  • Assignee changed from Alexander Kaluzhny to Ilfat Kinyaev

Please add tests for loading plugins

#11 Updated by Alexander Kaluzhny about 4 years ago

  • Assignee changed from Ilfat Kinyaev to Alexander Kaluzhny

#12 Updated by Alexander Kaluzhny about 4 years ago

  • Status changed from New to Active / In progress

#13 Updated by Alexander Kaluzhny about 4 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Alexander Kaluzhny to Mark Zaslavskiy
  • Test scenario updated (diff)

https://github.com/OSLL/mdbci/tree/7981_refactoring_from_comments
https://github.com/OSLL/mdbci/pull/358

https://github.com/mariadb-corporation/maxscale-jenkins-jobs/tree/7981_refactoring_from_comments
https://github.com/mariadb-corporation/maxscale-jenkins-jobs/pull/151

  1. 1. Run:
    ./scripts/jenkins_cli/create_view.sh -s http://maxscale-jenkins.mariadb.com -p 8090 -v testViewFor7981 -j 7262_matrix1

#Results: output
Success: view - 'testViewFor7981' has been created
Success: job - '7262_matrix' has been added to view - 'testViewFor7981'

  1. At http://maxscale-jenkins.mariadb.com:8090/view/testViewFor7981/ must be a job.
  1. 2. Run:
    ./scripts/jenkins_cli/create_view.sh -s http://maxscale-jenkins.mariadb.com -p 8090 -v testViewFor7981 -j 7262_matrix1

#Results:
ERROR: View 'testViewFor7981' already exists
Error: view - 'testViewFor7981' creation failed!

  1. 3. Run:
    ./scripts/jenkins_cli/create_view.sh -s http://maxscale-jenkins.mariadb.com -p 8090 -v testViewFor7981_1 -j 7262_matrix1

#Results:
Success: view - 'testViewFor7981_1' has been created
Error: job - '7262_matrix1' adding failed!

  1. At http://maxscale-jenkins.mariadb.com:8090/view/testViewFor7981_1/ you can see empty view.

#4 Install plugin test
Create file plugins with next line: powershell 1.3. Before starting script ensure it's not installed(restart Jenkins and check it's not installed). Then run script:
vagranttest@maxscale-jenkins:~/kaluzny/mdbci$ ./scripts/jenkins_cli/install_plugins.sh -s http://maxscale-jenkins.mariadb.com -p 8090 -f plugins
Plugin powershell 1.3 NOT installed, installing...
Installing a plugin from http://mirrors.jenkins-ci.org/plugins/powershell/1.3/powershell.hpi
Ok

All jenkins plugins installed from file plugins

After script finished restart Jenkins check if plugin installed(should be installed).

If you run script again it should say that plugin already installed.

#14 Updated by Mark Zaslavskiy about 4 years ago

  • Status changed from Review to Closed

Also available in: Atom PDF