カスタムプロジェクトでランダムにビルディングブロックを選択する
3件の返信
Hi, I want to build a custom project that goes through severL cycles (let’s say 10, for example).
In each cycle I want the build-task to select 100 building blocks randomly (i.e. each cycle has a new set of 100 randomly selected blocks).
How can this be done?
0
こんにちは、,
our dev says it can be done theoretically but requires a lot of programming. There is no easy way to do this now. We could possible add a specific action into custom projects that would simplify this.
1
What you can do is to create different config files with different sets of blocks and create a simple script that load one different cfg file at each loop in a workflow.
I am doing this for both config files and templates ad it works pretty well.
You find two examples attached:
- The first two are for templates. They change the templates sequentialy every time it is invoked in the workflow. It can easily be adapted to change builder configs chosing the cfg file randomically instead of sequentially.
- The third one can be lauched from a windows command line and changes the builder config every hour chosing the cfg file randomically within a predefined set. Also this could be modified to be invoked by a step of workflow inside a loop instead of changing the cfg file periodically from outside the workflow.
Hope this helps somehow
NB. for 1. you have to install git.bash if you use Windows
0
The scripts ..
0
3件の返信を表示中 - 1 - 3件目 (全3件中)