You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2021/10/15 15:54:46 UTC

[trafficserver-ci] branch main updated: change from docker agent to just controller node

This is an automated email from the ASF dual-hosted git repository.

bnolsen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git


The following commit(s) were added to refs/heads/main by this push:
     new f7c0de1  change from docker agent to just controller node
     new 56a401a  Merge pull request #61 from traeak/docs_controller_agent
f7c0de1 is described below

commit f7c0de1cf09a54cfd60c62c11fbf2db8ef2ec33b
Author: Brian Olsen <bn...@gmail.com>
AuthorDate: Fri Oct 15 08:34:33 2021 -0700

    change from docker agent to just controller node
---
 jenkins/branch/docs.pipeline | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)

diff --git a/jenkins/branch/docs.pipeline b/jenkins/branch/docs.pipeline
index 8ce0c13..aa55e82 100644
--- a/jenkins/branch/docs.pipeline
+++ b/jenkins/branch/docs.pipeline
@@ -73,7 +73,7 @@ pipeline {
 				}
 			}
 			post {
-				success {
+				always {
 					archiveArtifacts artifacts: "src/output/**/*", fingerprint: false, allowEmptyArchive: true
 					publishHTML (target : [
 						allowMissing: true,
@@ -87,9 +87,8 @@ pipeline {
 						echo
 						echo "See the job's Build artifacts and click on index.html for the rendered docs."
 						echo
-						'''
-				}
-				always {
+					'''
+
 					cleanWs()
 				}
 			}
@@ -99,14 +98,7 @@ pipeline {
 			when {
 				environment name: 'PUBLISH_DOCS', value: 'true'
 			}
-			agent {
-				docker {
-					image 'controller.trafficserver.org/ats/centos:8'
-					registryUrl 'https://controller.trafficserver.org/'
-					args '--network=host -v "/home/docs/:/home/docs:rw"'
-					label 'docs'
-				}
-			}
+			agent { label 'controller' }
 			steps {
 				echo "Installing"
 				script {
@@ -114,8 +106,8 @@ pipeline {
 						echo "unstashing"
 						unstash 'docs'
 						sh '''
-						sudo cp -avx ja /home/docs
-						sudo cp -avx en /home/docs
+						cp -avx ja /home/docs
+						cp -avx en /home/docs
 						/home/docs/docs_purge.sh ${GITHUB_BRANCH}
 						'''
 					}