CtrlK
BlogDocsLog inGet started
Tessl Logo

pantheon-ai/jenkinsfile-toolkit

Complete jenkinsfile toolkit with generation and validation capabilities

97

Quality

97%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Risky

Do not use without reviewing

Overview
Quality
Evals
Security
Files

task.mdvalidator/evals/scenario-3/

Pipeline with Shared Library Dependency

Problem Description

A team wants to validate their containerized deployment pipeline before submitting it for code review. The pipeline uses a company-wide shared library. They've had issues in the past where the Jenkinsfile passed validation but failed at runtime because the shared library had changed.

Validate the pipeline and produce a validation-report.md that covers both the Jenkinsfile itself and any concerns related to the shared library dependency.

Input Files

The following file is provided. Extract it before beginning.

=============== FILE: inputs/Jenkinsfile =============== @Library('platform-lib') _

pipeline { agent { label 'docker' }

environment {
    IMAGE_NAME = "myapp"
    REGISTRY = "registry.company.com"
}

stages {
    stage('Build Image') {
        steps {
            buildAndPush(
                imageName: "${REGISTRY}/${IMAGE_NAME}",
                tag: env.BUILD_NUMBER
            )
        }
    }

    stage('Deploy') {
        steps {
            deployApp(
                environment: 'staging',
                imageTag: env.BUILD_NUMBER
            )
        }
    }
}

}

tile.json