In gitlab in CI/CD in Schedules I am creating a new schedule that will be executed periodically. I have specified the requested branch and scheduled the job successfully, but don't know how to execute only that one test. I know for one pipeline that the guys managed to do it using spring profiles. Test test is annotated in the following way:
@RunWith(SpringRunner.class)
@SpringBootTest
@ActiveProfiles("local")
@Profile("night")
@IfProfileValue(name = "night", value = "true")
public class NightExecutionTest{
This was enough for execution of this test only. Unfortunately I am not the owner and I can't see the that schedule and it's configuration.
This is the schedule that I have created in gitlab:
Can someone tell what variable maybe I need to pass so this test will be executed only with this schedule, but ignored in every other pipeline?