简体   繁体   中英

Commit to SVN without changing the revision

I am commiting files to SVN via jenkins. This file have no effect on the revision and should not update it and increase revision number. How can I commit it without updating revision number?

svn commit -m "Jeninkins build number update" AndroidStable/BuildNumber.txt --non-interactive --username jenkins --password jenkins

What you are asking for isn't possible. SVN * doesn't distinguish between "code" and "not code"; any change to the content of the repo is a commit, which is (by definition) a bump in the revision number.

If your aim is to just incorporate the revision number into the final build artifact, there's no need to commit it back to SVN. You can just pull it in at build-time.

More simply: Don't put auto-generated stuff in version-control.


* Or indeed any version-control system that I'm familiar with.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM