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