Skip to content

Commit e848950

Browse files
committed
Merge remote-tracking branch 'v4.0/v4.0' into v4.0
2 parents f486a23 + 143cf66 commit e848950

File tree

8 files changed

+20
-88
lines changed

8 files changed

+20
-88
lines changed

Jenkinsfile

Lines changed: 12 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -96,45 +96,6 @@ pipeline {
9696
}
9797
}
9898
}
99-
stage('Checkstyle') {
100-
parallel {
101-
stage('Service Lifecycle Manager') {
102-
steps {
103-
sh './pipeline/checkstyle/servicelifecyclemanager_stylecheck.sh || true'
104-
}
105-
}
106-
stage('Function Lifecycle Manager') {
107-
steps {
108-
sh './pipeline/checkstyle/functionlifecyclemanager_stylecheck.sh || true'
109-
}
110-
}
111-
stage('Plugin Manager') {
112-
steps {
113-
sh './pipeline/checkstyle/pluginmanager_stylecheck.sh || true'
114-
}
115-
}
116-
stage('sonmanobase') {
117-
steps {
118-
sh './pipeline/checkstyle/sonmanobase_stylecheck.sh || true'
119-
}
120-
}
121-
stage('Specifc Manager Registry') {
122-
steps {
123-
sh './pipeline/checkstyle/specificmanagerregistry_stylecheck.sh || true'
124-
}
125-
}
126-
stage('Placement Executive') {
127-
steps {
128-
sh './pipeline/checkstyle/placementexecutive_stylecheck.sh || true'
129-
}
130-
}
131-
stage('Placement Plugin') {
132-
steps {
133-
sh './pipeline/checkstyle/placementplugin_stylecheck.sh || true'
134-
}
135-
}
136-
}
137-
}
13899
stage('Publish to :latest') {
139100
parallel {
140101
stage('Service Lifecycle Manager') {
@@ -181,79 +142,64 @@ pipeline {
181142
}
182143
}
183144
}
184-
stage('Deploying in pre-integration ') {
185-
when{
186-
not{
187-
branch 'master'
188-
}
189-
}
190-
steps {
191-
sh 'rm -rf tng-devops || true'
192-
sh 'git clone https://github.com/sonata-nfv/tng-devops.git'
193-
dir(path: 'tng-devops') {
194-
sh 'ansible-playbook roles/sp.yml -i environments -e "target=pre-int-sp component=mano-framework"'
195-
}
196-
}
197-
}
198-
stage('Publishing to :int') {
145+
stage('Publishing to :v4.0') {
199146
when{
200-
branch 'master'
147+
branch 'v4.0'
201148
}
202149
parallel {
203150
stage('Service Lifecycle Manager') {
204151
steps {
205152
echo 'Publishing Service Lifecycle Manager container'
206-
sh './pipeline/publish/servicelifecyclemanagement.sh int'
153+
sh './pipeline/publish/servicelifecyclemanagement.sh v4.0'
207154
}
208155
}
209156
stage('Function Lifecycle Manager') {
210157
steps {
211158
echo 'Publishing Function Lifecycle Manager container'
212-
sh './pipeline/publish/functionlifecyclemanagement.sh int'
159+
sh './pipeline/publish/functionlifecyclemanagement.sh v4.0'
213160
}
214161
}
215162
stage('Plugin Manager') {
216163
steps {
217164
echo 'Publishing Plugin Manager container'
218-
sh './pipeline/publish/pluginmanager.sh int'
165+
sh './pipeline/publish/pluginmanager.sh v4.0'
219166
}
220167
}
221168
stage('sonmanobase') {
222169
steps {
223170
echo 'Publishing sonmanobase container'
224-
sh './pipeline/publish/sonmanobase.sh int'
171+
sh './pipeline/publish/sonmanobase.sh v4.0'
225172
}
226173
}
227174
stage('Specifc Manager Registry') {
228175
steps {
229176
echo 'Publishing Specific Manager Registry container'
230-
sh './pipeline/publish/specificmanagerregistry.sh int'
177+
sh './pipeline/publish/specificmanagerregistry.sh v4.0'
231178
}
232179
}
233180
stage('Placement Executive') {
234181
steps {
235182
echo 'Publishing Placement Executive container'
236-
sh './pipeline/publish/placementexecutive.sh int'
183+
sh './pipeline/publish/placementexecutive.sh v4.0'
237184
}
238185
}
239186
stage('Placement Plugin') {
240187
steps {
241188
echo 'Publishing Placement Plugin container'
242-
sh './pipeline/publish/placementplugin.sh int'
189+
sh './pipeline/publish/placementplugin.sh v4.0'
243190
}
244191
}
245192
}
246193
}
247-
stage('Deploying in integration') {
194+
stage('Deploying in staging') {
248195
when{
249-
branch 'master'
196+
branch 'v4.0'
250197
}
251198
steps {
252-
sh './pipeline/publish/retag.sh'
253199
sh 'rm -rf tng-devops || true'
254200
sh 'git clone https://github.com/sonata-nfv/tng-devops.git'
255201
dir(path: 'tng-devops') {
256-
sh 'ansible-playbook roles/sp.yml -i environments -e "target=int-sp component=mano-framework"'
202+
sh 'ansible-playbook roles/sp.yml -i environments -e "target=sta-sp-v4.0 component=mano-framework"'
257203
}
258204
}
259205
}

pipeline/publish/functionlifecyclemanagement.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ set -e
3535

3636
TAG=$1
3737

38-
if [ "$TAG" == "int" ]; then
39-
echo "Retagging"
40-
docker tag registry.sonata-nfv.eu:5000/functionlifecyclemanagement:latest registry.sonata-nfv.eu:5000/functionlifecyclemanagement:int
41-
fi
38+
docker tag registry.sonata-nfv.eu:5000/functionlifecyclemanagement:latest registry.sonata-nfv.eu:5000/functionlifecyclemanagement":$TAG"
4239

4340
docker push registry.sonata-nfv.eu:5000/functionlifecyclemanagement":$TAG"

pipeline/publish/placementexecutive.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ set -e
3535

3636
TAG=$1
3737

38-
if [ "$TAG" == "int" ]; then
39-
docker tag registry.sonata-nfv.eu:5000/placementexecutive:latest registry.sonata-nfv.eu:5000/placementexecutive:int
40-
fi
38+
docker tag registry.sonata-nfv.eu:5000/placementexecutive:latest registry.sonata-nfv.eu:5000/placementexecutive":$TAG"
39+
4140
docker push registry.sonata-nfv.eu:5000/placementexecutive":$TAG"

pipeline/publish/placementplugin.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ set -e
3535

3636
TAG=$1
3737

38-
if [ "$TAG" == "int" ]; then
39-
docker tag registry.sonata-nfv.eu:5000/placementplugin:latest registry.sonata-nfv.eu:5000/placementplugin:int
40-
fi
38+
docker tag registry.sonata-nfv.eu:5000/placementplugin:latest registry.sonata-nfv.eu:5000/placementplugin":$TAG"
4139

4240
docker push registry.sonata-nfv.eu:5000/placementplugin":$TAG"

pipeline/publish/pluginmanager.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ set -e
3535

3636
TAG=$1
3737

38-
if [ "$TAG" == "int" ]; then
39-
docker tag registry.sonata-nfv.eu:5000/pluginmanager:latest registry.sonata-nfv.eu:5000/pluginmanager:int
40-
fi
38+
docker tag registry.sonata-nfv.eu:5000/pluginmanager:latest registry.sonata-nfv.eu:5000/pluginmanager":$TAG"
4139

4240
docker push registry.sonata-nfv.eu:5000/pluginmanager":$TAG"

pipeline/publish/servicelifecyclemanagement.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ set -e
3535

3636
TAG=$1
3737

38-
if [ "$TAG" == "int" ]; then
39-
docker tag registry.sonata-nfv.eu:5000/servicelifecyclemanagement:latest registry.sonata-nfv.eu:5000/servicelifecyclemanagement:int
40-
fi
38+
docker tag registry.sonata-nfv.eu:5000/servicelifecyclemanagement:latest registry.sonata-nfv.eu:5000/servicelifecyclemanagement":$TAG"
4139

4240
docker push registry.sonata-nfv.eu:5000/servicelifecyclemanagement":$TAG"

pipeline/publish/sonmanobase.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ set -e
3535

3636
TAG=$1
3737

38-
if [ "$TAG" == "int" ]; then
39-
docker tag registry.sonata-nfv.eu:5000/sonmanobase:latest registry.sonata-nfv.eu:5000/sonmanobase:int
40-
fi
38+
docker tag registry.sonata-nfv.eu:5000/sonmanobase:latest registry.sonata-nfv.eu:5000/sonmanobase":$TAG"
4139

4240
docker push registry.sonata-nfv.eu:5000/sonmanobase":$TAG"

pipeline/publish/specificmanagerregistry.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ set -e
3535

3636
TAG=$1
3737

38-
if [ "$TAG" == "int" ]; then
39-
docker tag registry.sonata-nfv.eu:5000/specificmanagerregistry:latest registry.sonata-nfv.eu:5000/specificmanagerregistry:int
40-
fi
38+
docker tag registry.sonata-nfv.eu:5000/specificmanagerregistry:latest registry.sonata-nfv.eu:5000/specificmanagerregistry":$TAG"
4139

4240
docker push registry.sonata-nfv.eu:5000/specificmanagerregistry":$TAG"

0 commit comments

Comments
 (0)