Update Jenkinsfile
This commit is contained in:
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@@ -29,7 +29,7 @@ pipeline {
|
|||||||
echo '📋 Running linters...'
|
echo '📋 Running linters...'
|
||||||
|
|
||||||
sh '''
|
sh '''
|
||||||
source venv/bin/activate
|
. venv/bin/activate
|
||||||
|
|
||||||
# Pylint - Python linting with custom config
|
# Pylint - Python linting with custom config
|
||||||
pylint --rcfile=.pylintrc \
|
pylint --rcfile=.pylintrc \
|
||||||
@@ -121,7 +121,7 @@ pipeline {
|
|||||||
|
|
||||||
withSonarQubeEnv('SonarQube') {
|
withSonarQubeEnv('SonarQube') {
|
||||||
sh '''
|
sh '''
|
||||||
source venv/bin/activate
|
. venv/bin/activate
|
||||||
|
|
||||||
sonar-scanner \
|
sonar-scanner \
|
||||||
-Dsonar.projectKey=openclaw \
|
-Dsonar.projectKey=openclaw \
|
||||||
@@ -151,7 +151,7 @@ pipeline {
|
|||||||
|
|
||||||
withCredentials([string(credentialsId: 'snyk-token', variable: 'SNYK_TOKEN')]) {
|
withCredentials([string(credentialsId: 'snyk-token', variable: 'SNYK_TOKEN')]) {
|
||||||
sh '''
|
sh '''
|
||||||
source venv/bin/activate
|
. venv/bin/activate
|
||||||
|
|
||||||
# Snyk test for Python dependencies
|
# Snyk test for Python dependencies
|
||||||
snyk test \
|
snyk test \
|
||||||
@@ -181,7 +181,7 @@ pipeline {
|
|||||||
echo '🧪 Running unit tests...'
|
echo '🧪 Running unit tests...'
|
||||||
|
|
||||||
sh '''
|
sh '''
|
||||||
source venv/bin/activate
|
. venv/bin/activate
|
||||||
|
|
||||||
pytest tests/ \
|
pytest tests/ \
|
||||||
-v \
|
-v \
|
||||||
@@ -222,7 +222,7 @@ pipeline {
|
|||||||
echo '🔐 Running security unit tests...'
|
echo '🔐 Running security unit tests...'
|
||||||
|
|
||||||
sh '''
|
sh '''
|
||||||
source venv/bin/activate
|
. venv/bin/activate
|
||||||
|
|
||||||
pytest tests/test_security.py \
|
pytest tests/test_security.py \
|
||||||
-v \
|
-v \
|
||||||
@@ -245,7 +245,7 @@ pipeline {
|
|||||||
echo '🔗 Running integration tests...'
|
echo '🔗 Running integration tests...'
|
||||||
|
|
||||||
sh '''
|
sh '''
|
||||||
source venv/bin/activate
|
. venv/bin/activate
|
||||||
|
|
||||||
# Oracle connection test
|
# Oracle connection test
|
||||||
python3 -c "
|
python3 -c "
|
||||||
@@ -285,7 +285,7 @@ pipeline {
|
|||||||
echo '📦 Building application...'
|
echo '📦 Building application...'
|
||||||
|
|
||||||
sh '''
|
sh '''
|
||||||
source venv/bin/activate
|
. venv/bin/activate
|
||||||
|
|
||||||
# Freeze dependencies
|
# Freeze dependencies
|
||||||
pip freeze > requirements.locked.txt
|
pip freeze > requirements.locked.txt
|
||||||
@@ -324,7 +324,7 @@ pipeline {
|
|||||||
remoteDirectory: '/home/joungmin/openclaw',
|
remoteDirectory: '/home/joungmin/openclaw',
|
||||||
execCommand: '''
|
execCommand: '''
|
||||||
cd /home/joungmin/openclaw
|
cd /home/joungmin/openclaw
|
||||||
source venv/bin/activate
|
. venv/bin/activate
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pytest tests/ --tb=short
|
pytest tests/ --tb=short
|
||||||
pytest tests/test_security.py --tb=short
|
pytest tests/test_security.py --tb=short
|
||||||
|
|||||||
Reference in New Issue
Block a user