Move default job
This commit is contained in:
@@ -9,20 +9,3 @@ stages:
|
|||||||
- Stage 1:
|
- Stage 1:
|
||||||
jobs:
|
jobs:
|
||||||
- Default Job
|
- Default Job
|
||||||
|
|
||||||
Default Job:
|
|
||||||
tasks:
|
|
||||||
- script:
|
|
||||||
- echo version=$(date -d "${bamboo.buildTimeStamp}" +"%Y%m%d-%H%M%S") > version.txt
|
|
||||||
- inject-variables:
|
|
||||||
file: version.txt
|
|
||||||
- script: |
|
|
||||||
docker build . -t helloworld-test:${bamboo.inject.version} \
|
|
||||||
--label=vcs_url="${bamboo.planRepository.repositoryUrl}" \
|
|
||||||
--label=vcs_branch="${bamboo.planRepository.branch}" \
|
|
||||||
--label=vcs_revision="${bamboo.planRepository.revision}" \
|
|
||||||
--label=build_timestamp="${bamboo.buildTimeStamp}" \
|
|
||||||
--label=build_plan_name="${bamboo.buildPlanName}" \
|
|
||||||
--label=build_number="${bamboo.buildNumber}"
|
|
||||||
requirements:
|
|
||||||
- Docker
|
|
||||||
|
|||||||
Reference in New Issue
Block a user