Go to file
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
deploy-this def git_take(projects, git_remote) { 2025-09-04 11:36:51 +02:00
gitblit Now Angular is in zaklik-by-node-js 2025-02-13 18:15:52 +01:00
gitea +kopama.com.pl 2025-09-02 18:17:37 +02:00
jenkins Update to /sd_/_programs 2025-09-04 08:24:59 +02:00
mailu Turn off automatic certificates 2025-05-31 20:44:02 +02:00
nginx-config redirect kopama.themself.eu -> kopama.com.pl 2025-09-02 19:55:40 +02:00
.project go to gitea 2025-03-24 16:55:59 +01:00