forked from CentOS-PaaS-SIG/linchpin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request CentOS-PaaS-SIG#594 from herlo/jenkins_release_job
- Loading branch information
Showing
6 changed files
with
214 additions
and
29 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
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' |