sh "useradd -o -u $UID -d `pwd` -r -g jenkins jenkins"
sh "echo '#! /bin/sh' > /usr/bin/mesg"
sh "chmod 755 /usr/bin/mesg"
- sh "runuser -l jenkins -c devops-stages/stage-test.sh"
+ sh "runuser jenkins -c devops-stages/stage-test.sh"
if (fileExists('coverage.xml')) {
cobertura coberturaReportFile: 'coverage.xml'
}
}
stage('Build') {
sh(returnStdout:true,
- script: "runuser -l $USER -c devops-stages/stage-build.sh").trim()
+ script: "runuser jenkins -c devops-stages/stage-build.sh").trim()
}
stage('Archive') {
- sh "runuser -l jenkins -c 'mkdir -p changelog'"
- sh "runuser -l jenkins -c \"tools/generatechangelog-pipeline.sh > changelog/changelog-${mdg}.html\""
+ sh "runuser jenkins -c 'mkdir -p changelog'"
+ sh "runuser jenkins -c \"devops/tools/generatechangelog-pipeline.sh > changelog/changelog-${mdg}.html\""
sh(returnStdout:true,
- script: "runuser -l jenkins -c devops-stages/stage-archive.sh").trim()
+ script: "runuser jenkins -c devops-stages/stage-archive.sh").trim()
ci_helper.archive(artifactory_server,mdg,branch,'untested')
}
}
stage('Build System') {
def downstream_params_stage_3 = [
string(name: 'GERRIT_BRANCH', value: "${branch}"),
+ string(name: 'INSTALLER', value: "Default" ),
string(name: 'UPSTREAM_JOB_NAME', value: "${JOB_NAME}" ),
string(name: 'UPSTREAM_JOB_NUMBER', value: "${BUILD_NUMBER}" ),
booleanParam(name: 'DO_STAGE_4', value: do_stage_4 )