[DO-1196] change workspace volume type (!54)

Co-authored-by: Yaroslav Bondarenko <yaroslav.bondarenko@avroid.tech>
Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/54
Reviewed-by: Denis Patrakeev <denis.patrakeev@avroid.team>
This commit is contained in:
Yaroslav Bondarenko
2024-12-02 22:29:20 +03:00
parent 1c0d6f7f40
commit 1d69c81c47
9 changed files with 11 additions and 27 deletions

View File

@@ -29,7 +29,7 @@ String gitRepoName = "${owner}/${projectName}"
String nexusRepoName = 'eisen-os_doc-feature'
Git git = new Git(this, env.JENKINS_GIT_CREDENTIALS_SSH)
podTemplate(workspaceVolume: hostPathWorkspaceVolume(hostPath: '/data'),
podTemplate(workspaceVolume: emptyDirWorkspaceVolume(memory: false),
yaml: """
apiVersion: v1
kind: Pod
@@ -210,8 +210,6 @@ podTemplate(workspaceVolume: hostPathWorkspaceVolume(hostPath: '/data'),
echo 'ERROR: ' + err.getMessage()
errorMessage = err.getMessage()
currentBuild.result = 'FAILURE'
} finally {
cleanWs()
}
}
}