Add Jenkins job configs (build, test, deploy)

This commit is contained in:
Joungmin
2026-02-19 21:08:22 +09:00
parent 43aa70be81
commit 30eefd58e4
3 changed files with 128 additions and 0 deletions

43
jenkins_build.xml Normal file
View File

@@ -0,0 +1,43 @@
<?xml version='1.0' encoding='UTF-8'?>
<project>
<description>Build job - compiles and packages the application</description>
<keepDependencies>false</keepDependencies>
<properties/>
<scm class="hudson.plugins.git.GitSCM">
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>https://gittea.cloud-handson.com/joungmin/openclaw-workspace.git</url>
<credentialsId>gitea-credentials</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
<branches>
<hudson.plugins.git.BranchSpec>
<name>*/main</name>
</hudson.plugins.git.BranchSpec>
</branches>
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
<submoduleCfg class="list"/>
<extensions/>
</scm>
<assignedNode>built-in</assignedNode>
<builders>
<hudson.tasks.Shell>
<command>python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install pylint flake8 black isort oracledb pytest pytest-cov</command>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>. venv/bin/activate
pip freeze > requirements.locked.txt</command>
</hudson.tasks.Shell>
</builders>
<publishers>
<hudson.tasks.ArtifactArchiver>
<artifacts>*.py,requirements*.txt</artifacts>
<allowEmptyArchive>true</allowEmptyArchive>
<caseSensitive>true</caseSensitive>
</hudson.tasks.ArtifactArchiver>
</publishers>
<buildWrappers/>
</project>