-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jenkins release job #594
Merged
+214
−29
Merged
Jenkins release job #594
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
fd73295
Add cd-linchpin-release job to jenkins
25b11dd
Checkout pipeline job from SCM
e385b0d
add DOCKER_REPO_URL default
f004622
paas-bot is a string credential
ce5b949
Make pypiRepo a parameter
ad2859d
github_issue_547: Basic support for remote libvirt hypervisors
5b52199
Detail MANIFEST.in and setup.py
039b82a
Fixes ovirt role template error
jcpowermac 1012ae3
Remove mode for local_image_path. Let umask do its job.
35c4cba
Update links to show directory
46e41b6
Remove untitled docs from search index
4f93cdc
Add footer.rst. Include in appropriate locations
68eadcb
update to install linchpin from test.pypi
3f02a37
add --pre option for dev versions
533638e
bump version for testing
62b1eae
bump to v1.5.5a5
fa238f8
Merge branch 'develop' of github.com:herlo/linchpin into develop-testing
7dba29b
bump to v1.5.5a6
dd2d085
bump to v1.5.5a7
a7162da
bump to v1.5.5a6
950a5aa
bump to v1.5.5a7
62538a8
bump to v1.5.5a8
86bd03b
Merge branch 'test_pypi_install' of github.com:herlo/linchpin into te…
88c45ba
bump to v1.5.5a9
cd2e90c
add -x
63655b5
bump to v1.5.5a10
bee0865
bump to v1.5.5a11
772e700
Add retries to pip download, version to 1.5.5a12
68c3a23
bump to v1.5.5a13
3c94588
update JenkinsfileRelease to release to production
6e7be2b
Updated the image for os-server testing
samvarankashyap ca952fc
bump version to 1.5.5a14
bc66ed4
bump version to 1.5.5a15
34d3a0f
test.pypi pip install fixes
1663155
bump version to 1.5.5a16
17c47ca
Error handling, push to master branch added
01d5186
Updated the image for os-server testing
samvarankashyap 06a4c12
Merge branch 'jenkins_release_job' of github.com:herlo/linchpin into …
5e4032f
Adjusting repos from herlo to CentOS-PaaS-SIG
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash -x | ||
|
||
# This script installs linchpin from test.pypi.org | ||
# used by cd-linchpin-release (JenkinsfileRelease) | ||
# will only be used on the latest distro (currently | ||
# fedora27 and the dummy provider). | ||
|
||
VERSION=${1} | ||
TMPDIR=$(mktemp -d) | ||
|
||
PYPI=https://test.pypi.org/simple | ||
|
||
pip install -U pip setuptools | ||
|
||
# wait for test.pypi.org to have files | ||
sleep 10 | ||
|
||
pip download linchpin==${VERSION} --index-url ${PYPI} --retries 10 --pre --no-deps --no-binary :all: -d ${TMPDIR} | ||
|
||
# grab the requirements.txt from the linchpin package and intall those packages from production pypi | ||
tar -xvf ${TMPDIR}/linchpin-${VERSION}.tar.gz -C ${TMPDIR} linchpin-${VERSION}/requirements.txt --strip-components=1 | ||
pip install -r ${TMPDIR}/requirements.txt | ||
|
||
# once deps are installed from production pypi, install linchpin from test.pypi | ||
pip install linchpin==${VERSION} --index-url ${PYPI} | ||
|
||
# verify linchpin is installed | ||
linchpin --version 2>&1 | grep ${VERSION} | ||
if [ "${?}" -eq "0" ]; then | ||
echo SUCCESS | ||
exit 0 | ||
fi | ||
echo FAILURE | ||
exit 1 | ||
|
96 changes: 96 additions & 0 deletions
96
config/s2i/jenkins/master/configuration/jobs/cd-linchpin-release/config.xml
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,96 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<flow-definition plugin="workflow-job@2.17"> | ||
<actions> | ||
<org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction plugin="workflow-multibranch@2.17"> | ||
<jobPropertyDescriptors> | ||
<string>hudson.model.ParametersDefinitionProperty</string> | ||
<string>com.coravy.hudson.plugins.github.GithubProjectProperty</string> | ||
<string>jenkins.model.BuildDiscarderProperty</string> | ||
</jobPropertyDescriptors> | ||
</org.jenkinsci.plugins.workflow.multibranch.JobPropertyTrackerAction> | ||
</actions> | ||
<description></description> | ||
<keepDependencies>false</keepDependencies> | ||
<properties> | ||
<io.fabric8.jenkins.openshiftsync.BuildConfigProjectProperty plugin="openshift-sync@1.0.7"> | ||
<uid></uid> | ||
<namespace></namespace> | ||
<name></name> | ||
<resourceVersion></resourceVersion> | ||
</io.fabric8.jenkins.openshiftsync.BuildConfigProjectProperty> | ||
<jenkins.model.BuildDiscarderProperty> | ||
<strategy class="hudson.tasks.LogRotator"> | ||
<daysToKeep>-1</daysToKeep> | ||
<numToKeep>20</numToKeep> | ||
<artifactDaysToKeep>-1</artifactDaysToKeep> | ||
<artifactNumToKeep>20</artifactNumToKeep> | ||
</strategy> | ||
</jenkins.model.BuildDiscarderProperty> | ||
<com.coravy.hudson.plugins.github.GithubProjectProperty plugin="github@1.29.0"> | ||
<projectUrl>https://github.com/CentOS-PaaS-SIG/linchpin/</projectUrl> | ||
<displayName></displayName> | ||
</com.coravy.hudson.plugins.github.GithubProjectProperty> | ||
<com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.3"> | ||
<gitLabConnection></gitLabConnection> | ||
</com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty> | ||
<com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.27"> | ||
<autoRebuild>false</autoRebuild> | ||
<rebuildDisabled>false</rebuildDisabled> | ||
</com.sonyericsson.rebuild.RebuildSettings> | ||
<hudson.model.ParametersDefinitionProperty> | ||
<parameterDefinitions> | ||
<hudson.model.StringParameterDefinition> | ||
<name>ghprbActualCommit</name> | ||
<description></description> | ||
<defaultValue>develop</defaultValue> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>sha1</name> | ||
<description></description> | ||
<defaultValue></defaultValue> | ||
</hudson.model.StringParameterDefinition> | ||
<hudson.model.StringParameterDefinition> | ||
<name>ghprbGhRepository</name> | ||
<description>Git Hub Repository</description> | ||
<defaultValue></defaultValue> | ||
</hudson.model.StringParameterDefinition> | ||
</parameterDefinitions> | ||
</hudson.model.ParametersDefinitionProperty> | ||
<org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> | ||
<triggers> | ||
<com.cloudbees.jenkins.GitHubPushTrigger plugin="github@1.29.0"> | ||
<spec></spec> | ||
</com.cloudbees.jenkins.GitHubPushTrigger> | ||
</triggers> | ||
</org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty> | ||
</properties> | ||
<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="workflow-cps@2.45"> | ||
<scm class="hudson.plugins.git.GitSCM" plugin="git@3.8.0"> | ||
<configVersion>2</configVersion> | ||
<userRemoteConfigs> | ||
<hudson.plugins.git.UserRemoteConfig> | ||
<url>https://github.com/CentOS-PaaS-SIG/linchpin</url> | ||
</hudson.plugins.git.UserRemoteConfig> | ||
</userRemoteConfigs> | ||
<branches> | ||
<hudson.plugins.git.BranchSpec> | ||
<name>${ghprbActualCommit}</name> | ||
</hudson.plugins.git.BranchSpec> | ||
</branches> | ||
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> | ||
<submoduleCfg class="list"/> | ||
<extensions> | ||
<hudson.plugins.git.extensions.impl.ChangelogToBranch> | ||
<options> | ||
<compareRemote>origin</compareRemote> | ||
<compareTarget>develop</compareTarget> | ||
</options> | ||
</hudson.plugins.git.extensions.impl.ChangelogToBranch> | ||
</extensions> | ||
</scm> | ||
<scriptPath>config/Dockerfiles/JenkinsfileRelease</scriptPath> | ||
<lightweight>true</lightweight> | ||
</definition> | ||
<triggers/> | ||
<disabled>false</disabled> | ||
</flow-definition> |
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,10 +1,17 @@ | ||
FROM openshift/jenkins-slave-base-centos7:v3.7 | ||
FROM openshift/jenkins-slave-base-centos7:v3.6 | ||
## | ||
## -------------------------------------> ^^ this is needed | ||
## since the centosCI openshift cluster | ||
## is running 3.6 and the slave needs the | ||
## correct 'oc' binary to work properly | ||
## This should be updated when the cluster | ||
## is upgraded. | ||
## | ||
|
||
# Install dependencies for JenkinsfileRelease | ||
# add ruby for ghi | ||
RUN yum install -y epel-release | ||
RUN yum install -y gcc python-devel libyaml-devel \ | ||
RUN yum install -y epel-release; \ | ||
yum install -y gcc python-devel libyaml-devel \ | ||
python-pip python-setuptools python-wheel python-twine \ | ||
ansible jq ruby && yum clean all && rm -rf /var/cache/yum | ||
|
||
RUN pip install -U pip setuptools wheel twine | ||
ansible jq ruby && yum clean all && rm -rf /var/cache/yum; \ | ||
pip install -U pip setuptools wheel twine |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__short_version__ = '1.5.5' | ||
__version__ = '1.5.5a1' | ||
__version__ = '1.5.5a16' |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be switched back? I know sk had to change this because the CentOS image was missing? Or do I have it backwards?