Jenkins not showing detailed logs on console output

33 views
Skip to first unread message

Sai Bhargav Kottisa

unread,
Jul 22, 2024, 10:39:16 AM7/22/24
to jenkins...@googlegroups.com
Hi,

I have a python application that runs on jenkins and logs at {WORKSPACE}/bot.log but for some reason jenkins console output is not showing full detailed log i.e- bot.log

image.png

As you can the above screenshot we are not getting full detailed log but on the server at the location  bot.log is having full detailed lines so how can i get that full detailed log on console output ?


i am running below pipeline script 

pipeline {
    agent any

    environment {
        CLIENT_ID = credentials('CLIENT_ID_B_PROD')
        SECRET_ID = credentials('SECRET_ID_B_PROD')
        NET_CLIENT_ID = credentials('NET_CLIENT_B_PROD')
        NET_SECRET_ID = credentials('NET_SECRET_ID_B_PROD')
    }

    stages {
        stage('Run BOT') {
            steps {
                sh '''
                    export HTTPX_LOG_LEVEL=debug
                   
                    cd /opt/apps/triage
                    source venv/bin/activate  # Activate your virtual environment
                     
                    python bot.py B_PLANNED UAT
                     
                    deactivate  # Deactivate the virtual environment after running the script
                '''
            }
        }
    }
}




Reply all
Reply to author
Forward
0 new messages