{"id":22911864,"url":"https://github.com/valtri/jenkins-scripts","last_synced_at":"2025-10-07T16:06:51.396Z","repository":{"id":41076909,"uuid":"45838098","full_name":"valtri/jenkins-scripts","owner":"valtri","description":"Initial attempts to cleanup packaging scripts used at CESNET.","archived":false,"fork":false,"pushed_at":"2015-11-10T16:47:36.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T06:14:55.576Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valtri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-09T12:59:53.000Z","updated_at":"2015-11-09T13:00:27.000Z","dependencies_parsed_at":"2022-09-01T13:12:26.595Z","dependency_job_id":null,"html_url":"https://github.com/valtri/jenkins-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtri%2Fjenkins-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtri%2Fjenkins-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtri%2Fjenkins-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valtri%2Fjenkins-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valtri","download_url":"https://codeload.github.com/valtri/jenkins-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246628418,"owners_count":20808106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T04:18:42.120Z","updated_at":"2025-10-07T16:06:46.365Z","avatar_url":"https://github.com/valtri.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jenkins scripts\n\nJenkins helper build scripts. The main script is **pkg-build-mock**.\n\n## launch-slave\n\nScript to launch Jenkins slave on the host, for Jenkins master only.\n\nExample:\n\n    /var/lib/jenkins/scripts/launch-slave jenkins myriad19.zcu.cz /var/lib/jenkins\n\n## pkg-build-copr\n\nBuild rpm package in COPR buildsystem. copr-cli package needs to be installed and credentials setup.\n\n## pkg-build-mock\n\nScript to build binary packages from prepared source packages in chroot\nenvironment.\n\nLocal build and local external repositories are supported.\n\nExample:\n\n    pkg-build-mock -p debian-8-x86_64 --clean\n    pkg-build-mock -p debian-8-x86_64 --add cache/*.changes\n    pkg-build-mock -p debian-8-x86_64 package.dsc\n\n    pkg-build-mock -p epel-7-x86_64 --clean\n    pkg-build-mock -p epel-7-x86_64 --add cache/*.rpm\n    pkg-build-mock -p epel-7-x86_64 package.spec\n\n## pkg-buildsrc-deb\n\nMake source package from debian/ directory and source tarball.\n\n## pkg-buildsrc-rpm\n\nMake source package from .spec file and source tarball.\n\n## pkg-bump\n\nSet version of the source package.\n\n## Example\n\n    name='pOCCI'\n    rpmname='python-pOCCI'\n    debname='python-pocci'\n    version=`sed -e \"s/.*=\\s*'\\(.*\\)'.*/\\1/\" pOCCI/version.py`\n    commit=${commit:-`git rev-parse HEAD`}\n    \n    # source tarball\n    wget https://github.com/CESNET/${name}/archive/${commit}/${name}-${commit}.tar.gz\n    \n    # source rpm\n    git clone http://scientific.zcu.cz/git/packaging-rpm-pOCCI.git \u0026\u0026 cd packaging-rpm-pOCCI\n    ${HOME}/scripts/pkg-bump ${rpmname} ${version} ${release}.\n    ${HOME}/scripts/pkg-buildsrc-rpm ${rpmname} ${version} ${name}-${commit}.tar.gz *.diff\n    mv *.src.rpm ..\n    cd ..\n    \n    # source deb\n    git clone http://scientific.zcu.cz/git/packaging-deb-pOCCI.git \u0026\u0026 cd packaging-deb-pOCCI\n    ${HOME}/scripts/pkg-bump ${debname} ${version} ${release}.\n    ${HOME}/scripts/pkg-buildpkg-deb ${debname} ${version} ${name}-${commit}.tar.gz\n    mv *.dsc *.debian.tar.* *.orig.tar.gz ..\n    cd ..\n\n    # COPR (let's not fail here due to chained builds)\n    ${HOME}/scripts/pkg-build-copr *.src.rpm || :\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaltri%2Fjenkins-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaltri%2Fjenkins-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaltri%2Fjenkins-scripts/lists"}