Hot answers tagged

3

I encountered the same issue when using the GitHub Branch Source Plugin in Jenkins as part of a multibranch pipeline. The documentation for the credentials configuration states: Credentials used to scan branches and pull requests, check out sources and mark commit statuses. Note that only "username with password" credentials are supported. ...


2

I made it work by changing the way labels argument is passed into requestBody. Turns out the list representation while interpolated into string is missing quotation marks around each list element. def setLabels (String repository, List label) { try { String labelsAsString = "[\"${label.join('", "')}\"]" def ...


1

There can be many correct answers, depending on the strategy you are doing. My take would be: I wouldn't create a dedicated Docker image (e.g. index.docker.com/python:3.9-slim) with the application on it, but rather use the official Python Docker image, to build the app and the same to run it, so I'd package your app separately from the image that runs it. ...


1

I would use the webhooks GitHub provides if you don't need something specific from Jenkins (Jenkins is in many cases a consumer of GitHub events/webhooks). https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#push Using this webhook you could inspect each payload for specific parameters (ref, repo, etc...) and do something (...


1

Here is what I did, I create a Makefile that includes my own method of image creation, .PHONY: image clean image-release image: image-release image-release: cargo build --release buildah unshare ./image/distroless.sh release clean: cargo -v clean For this purpose the only thing that matters is the image created by ./image/distroless.sh matches ...


1

I've solved this! I can't find the stackoverflow question that helped me, but they gave me the idea. git log --format=format:%s -1 Specifically, I have a bash file that does the following as part of my jenkins pipeline. echo "COMMIT MESSAGE" `git log --format=format:%s -1`; In my PR build, it prints the following: 2021-10-07 12:56:43 COMMIT ...


1

You are not building the wrong thing this is a topic that is coming up more and more frequently as people create more and more advanced pipelines. You can see people discussing the need for it here. The reason is doesn't come up a ton is most people can just trigger their tag job on any change to master. Which is much simpler to setup. I often want to tear ...


1

GitHub doesn't support VFS. There are news articles in 2017 saying GVFS and later VFS would be supported by GitHub. As of today, there is no support and no planned support for it. My sources: https://github.com/microsoft/VFSForGit/issues/1640 https://github.community/t/vfsforgit-setup/128184 https://github.community/t/microsofts-virtual-filesystem-for-git/...


Only top voted, non community-wiki answers of a minimum length are eligible