Skip to content
Snippets Groups Projects
Select Git revision
  • f480bbba84faf5ca12e9996c63309745c8113dbc
  • main default
  • ba
  • lc
  • sy
  • wyl
  • cmy
  • master
  • try
9 results

Jenkinsfile

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Jenkinsfile 447 B
    pipeline {
        agent any  // Changed from "label 'my-agent-label'"
        
        stages {
            stage('Build') {
                steps {
                    sh 'chmod +x gradlew'  // to make gradlew executable
                    sh './gradlew clean build'
                }
            }
    
            stage('Deploy with Docker') {
                steps {
                    sh 'docker-compose down || true'
                    sh 'docker-compose up -d'
                }
            }
        }
    }