Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ejercicio2-framework-front
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Josue
ejercicio2-framework-front
Commits
986e317b
Commit
986e317b
authored
Mar 08, 2021
by
Marco Ortiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8eda3eec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Jenkinsfile
Jenkinsfile
+2
-3
No files found.
Jenkinsfile
View file @
986e317b
...
...
@@ -14,11 +14,10 @@ pipeline {
stages
{
stage
(
'Install'
)
{
steps
{
def
packageJSON
=
readJSON
file:
'package.json'
def
packageJSONVersion
=
packageJSON
.
version
echo
packageJSONVersion
echo
"Branch is ${env.BRANCH_NAME}..."
nodejs
(
nodeJSInstallationName:
'NodeJS13'
,
configId:
'77600a18-f968-4cca-83e4-a9f76d165336'
)
{
PACKAGE_VERSION
=
sh
returnStdout:
true
,
script:
'''grep 'version' package.json | cut -d '"' -f4 | tr '\n' '\0'''
echo
"Current package version: $PACKAGE_VERSION"
sh
'PACKAGE_VERSION=$(node -p -e "require(\'./package.json\').version")'
echo
"Branch1112211 is ${PACKAGE_VERSION}"
// sh 'npm config ls'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment