Run build only when requirements/development.txt or similar files have changed

32 views
Skip to first unread message

Mauricio de Abreu Antunes

unread,
Mar 21, 2014, 5:36:37 PM3/21/14
to jenkins...@googlegroups.com
Hello list

I have a Django project running builds every day. My build process has a shell command that compiles and install all my requirements located in requirements/*.txt.
I would like to run the shell command only if these files were changed. It is consuming like 3 minutes and I am using Github Pull Request Builder.
So what I want to do is pass this process and go straight to my 'tests' step.

Thanks in advance.

Mauricio de Abreu Antunes

unread,
Mar 24, 2014, 8:52:57 AM3/24/14
to jenkins...@googlegroups.com
What I tried so fat is:

Read about BuildFlow
Read about Polling Ignore Commits in Certain Paths

I had no success.

Mauricio de Abreu Antunes

unread,
Mar 24, 2014, 10:22:29 AM3/24/14
to jenkins...@googlegroups.com
I also tried to add "Force polling using Workspace".


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/75fkoSqBEhc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mauricio de Abreu Antunes

Mauricio de Abreu Antunes

unread,
Mar 31, 2014, 2:19:39 PM3/31/14
to jenkins...@googlegroups.com
Anyone? Still trying to get it working.


On Friday, March 21, 2014 6:36:37 PM UTC-3, Mauricio de Abreu Antunes wrote:

Benjamin Lau

unread,
Mar 31, 2014, 2:22:17 PM3/31/14
to Jenkins Users
Hash (shasum) a copy of the file. Store it as a build artifact in the
project. When building grab the artifact from the last build compare
it to the new value. If the same skip the step otherwise rebuild.

Ben
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
Reply all
Reply to author
Forward
0 new messages