proxy-nginx/deploy-this
Artur Kuś e5529f5498 def git_take(projects, git_remote) {
withCredentials([usernamePassword(credentialsId: 'gitea-creds',
usernameVariable: 'GIT_USER', passwordVariable: 'GIT_PASS')]) {
        projects.each { project ->
            if (fileExists(project)) {
                dir(project) {
                    sh '''
                        echo "=== Updating ${project} ==="
                        git remote set-url origin
https://${GIT_USER}:${GIT_PASS}@git.arti24.eu/gitea/${project}.git
                        git fetch origin
                        git reset --hard origin/main
                    '''
                }
            } else {
                sh '''
                    echo "=== Cloning ${project} ==="
                    git clone
https://${GIT_USER}:${GIT_PASS}@git.arti24.eu/gitea/${project}.git
                '''
            }
            dir(project) {
                sh "git --no-pager log -n 1 --pretty=format:'%h %ad %s'
--date=short"
            }
        }
    }
}
2025-09-04 11:36:51 +02:00
..
lets-encrypt +kopama.com.pl 2025-09-02 18:17:37 +02:00
create-nginx-with-tools.jenkinsfile Now Angular is in zaklik-by-node-js 2025-02-13 18:15:52 +01:00
deploy-dc.yml Removing apps-data 2025-09-04 07:20:23 +02:00
nginx-with-tools-docker.dockerfile Now Angular is in zaklik-by-node-js 2025-02-13 18:15:52 +01:00
restart-docker.jenkinsfile Restart on swarm! 2025-08-15 07:28:11 +02:00
start-proxy.jenkinsfile _sd -> _sd_ 2025-09-04 07:23:08 +02:00
update-from-git.jenkinsfile def git_take(projects, git_remote) { 2025-09-04 11:36:51 +02:00