Skip to content

Commit 1d55de3

Browse files
committed
match with the new jenkins configuration
1 parent 1a867ab commit 1d55de3

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/api/jenkins/utils/jenkins.utils.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ export class JenkinsXmlBuilder {
8484
<description></description>
8585
<keepDependencies>false</keepDependencies>
8686
<properties>
87-
//TODO: Uncomment this when we have a way to trigger the Jenkins job automatically
88-
// <org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty>
89-
// <triggers>
90-
// <com.cloudbees.jenkins.GitHubPushTrigger plugin="${JenkinsConfig.PLUGINS.GITHUB}">
91-
// <spec/>
92-
// </com.cloudbees.jenkins.GitHubPushTrigger>
93-
// </triggers>
94-
// </org.jenkinsci.plugins.workflow.job.properties.PipelineTriggersJobProperty>
9587
</properties>
9688
<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" plugin="${JenkinsConfig.PLUGINS.WORKFLOW_CPS}">
9789
<scm class="hudson.plugins.git.GitSCM" plugin="${JenkinsConfig.PLUGINS.GIT}">

src/rhtap/modification/jenkinsfile.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ export class KubernetesAgentModification implements JenkinsfileModification {
2323
{
2424
oldContent: 'agent any',
2525
newContent:
26-
"agent {\n kubernetes {\n label 'jenkins-agent'\n cloud 'openshift'\n serviceAccount 'jenkins'\n podRetention onFailure()\n idleMinutes '5'\n containerTemplate {\n name 'jnlp'\n image '" +
27-
this.agentImage +
28-
"'\n ttyEnabled true\n args '${computer.jnlpmac} ${computer.name}'\n }\n }\n}",
26+
"agent {\n label 'tssc-jenkins-agent' \n}",
2927
},
3028
],
3129
};

0 commit comments

Comments
 (0)