-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 0.1.1
- Loading branch information
Showing
13 changed files
with
263 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
*** Settings *** | ||
Library Collections | ||
Library OperatingSystem | ||
Library JenkinsLibrary | ||
|
||
*** Keywords *** | ||
Create And Disable Job | ||
Create Jenkins Job ${test_job_name} | ||
Disable Jenkins Job ${test_job_name} | ||
|
||
Create Multiple Jobs | ||
Create Jenkins Job ${test_job_name} | ||
Create Jenkins Job ${second_test_job_name} | ||
|
||
Delete Multiple Jobs | ||
Delete Jenkins Job ${test_job_name} | ||
Delete Jenkins Job ${second_test_job_name} | ||
|
||
Check Multiple Jobs | ||
${jobs} = Get Jenkins Jobs | ||
Should Be True ${jobs} | ||
${second_job} = Get From List ${jobs} 0 | ||
Should Be Equal ${second_job['name']} ${second_test_job_name} | ||
Should Be Equal ${second_job['url']} ${jenkins_address}/job/${second_test_job_name}/ | ||
${first_job} = Get From List ${jobs} 1 | ||
Should Be Equal ${first_job['name']} ${test_job_name} | ||
Should Be Equal ${first_job['url']} ${jenkins_address}/job/${test_job_name}/ | ||
|
||
Create Job From Template | ||
[Arguments] ${job_name} ${template_file} | ||
${template} = Get File ${templates_dir}/${template_file} | ||
Create Jenkins Job ${job_name} ${template} | ||
|
||
Create Job And Run Multiple Builds | ||
[Arguments] ${job_name} ${count}=2 | ||
Create Jenkins Job ${job_name} | ||
:FOR ${run} IN RANGE ${count} | ||
\ Start Jenkins Job ${job_name} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.1" encoding="UTF-8"?><project> | ||
<description/> | ||
<keepDependencies>false</keepDependencies> | ||
<properties> | ||
<hudson.model.ParametersDefinitionProperty> | ||
<parameterDefinitions> | ||
<hudson.model.StringParameterDefinition> | ||
<name>param_string</name> | ||
<description/> | ||
<defaultValue>param_string</defaultValue> | ||
<trim>false</trim> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.BooleanParameterDefinition> | ||
<name>param_bool</name> | ||
<description/> | ||
<defaultValue>true</defaultValue> | ||
</hudson.model.BooleanParameterDefinition> | ||
</parameterDefinitions> | ||
</hudson.model.ParametersDefinitionProperty> | ||
</properties> | ||
<scm class="hudson.scm.NullSCM"/> | ||
<canRoam>true</canRoam> | ||
<disabled>false</disabled> | ||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | ||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | ||
<triggers/> | ||
<concurrentBuild>false</concurrentBuild> | ||
<builders> | ||
<hudson.tasks.Shell> | ||
<command>echo $param_shell | ||
echo $param_bool | ||
sleep 15</command> | ||
</hudson.tasks.Shell> | ||
</builders> | ||
<publishers/> | ||
<buildWrappers/> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from os.path import join, dirname | ||
from setuptools import setup | ||
from setuptools import setup, find_packages | ||
|
||
exec(open(join(dirname(__file__), | ||
'src', 'JenkinsLibrary', 'version.py')).read()) | ||
|
@@ -11,15 +11,30 @@ | |
'requests==2.18.4' | ||
] | ||
|
||
CLASSIFIERS = ''' | ||
License :: OSI Approved :: Apache Software License | ||
Development Status :: 5 - Production/Stable | ||
Programming Language :: Python :: 2 | ||
Programming Language :: Python :: 2.7 | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.3 | ||
Programming Language :: Python :: 3.4 | ||
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
Topic :: Software Development :: Testing | ||
Framework :: Robot Framework | ||
''' | ||
|
||
setup( | ||
name=PACKAGE, | ||
package_dir={'': 'src'}, | ||
packages=['JenkinsLibrary'], | ||
packages=find_packages('src'), | ||
version=VERSION, | ||
description=DESCRIPTION, | ||
author='Mikhail Naletov', | ||
author_email='[email protected]', | ||
url='https://github.com/okgolove/robotframework-jenkins', | ||
keywords=['jenkins', 'robotframework', 'robot', 'testing'], | ||
install_requires=REQUIREMENTS | ||
classifiers=CLASSIFIERS, | ||
install_requires=REQUIREMENTS, | ||
) |
Oops, something went wrong.