From bb1a7dfe3834249a5613f3e1663163bd8c832228 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Mon, 24 Feb 2025 15:28:31 +0000 Subject: [PATCH] Changed all commands to be run by the galaxy user --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 41ac6e6..5d6c8b8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,15 +11,15 @@ pipeline { stage ("install") { steps { sh 'useradd galaxy -m' - sh 'apt update' - sh 'apt install sudo -y' - sh 'pip install -r requirements.txt' - sh 'pip install standard-imghdr' + sh 'apt-get update' + sh 'apt-get install sudo -y' + sh 'sudo -u galaxy pip install -r requirements.txt' + sh 'sudo -u galaxy pip install standard-imghdr' } } stage ("lint") { steps { - sh "planemo lint autobigs-cli.xml" + sh "sudo -u galaxy planemo lint autobigs-cli.xml" } } stage ("test") {